Package org.olat.core.logging

Examples of org.olat.core.logging.OLATRuntimeException


          return;
        } else {
          // display publish set error dialog with how-to-solve information
          if ((sds.length == 1) && sds[0] == null) {
            // this if should never be entered!
            throw new OLATRuntimeException(
                "tried to publish a course with missing references, but this should already be caught during the course editor",
                new IllegalStateException());

            /*
             * FIXME: one special case at the moment which is a result from "<if
View Full Code Here


            namesList = cgm.getUniqueAreaNamesFromAllContexts();           
            main.contextPut("title", trans.translate("groupandareaselect.areas.title"));
            main.contextPut("noChoicesText", trans.translate("groupandareaselect.areas.nodata"));
            break;
        default:
            throw new OLATRuntimeException("Must use valid type. type::" + type, null);
        }
       
        // get preselected List from the comma separated string
    List preselectedNamesList;
    if (preselectedNames == null) {
View Full Code Here

    } catch (JMSException e) {
      throw new ServiceNotAvailableException("spellCheck, communication error with JMS - cannot send messages!!!");
    } catch (ServiceNotAvailableException e) {     
      throw e;
    } catch (Throwable th) {     
      throw new OLATRuntimeException("ClusteredSearchRequester.spellCheck() error!!!", th);
    } finally{
      releaseSession(session);
    }
  }
View Full Code Here

  private Translator getPackageTranslatorForLocale (Locale locale) {
    Class authProvClass = null;
    try {
      authProvClass = Class.forName(clazz);
    } catch (ClassNotFoundException e) {
      throw new OLATRuntimeException("classname::" + clazz + " does no exist", e);
    }
    return Util.createPackageTranslator(authProvClass, locale);
  }
View Full Code Here

      VFSLeaf file = tempFolder.createChildLeaf(page.getPageId()+".html");
      try {
        ParserDocument doc = parser.parseHTML(page.getContent());
        sb.append(doc.getContent());
      } catch (Exception e) {
        throw new OLATRuntimeException("error while parsing from wiki to cp. ores:"+ores.getResourceableId(), e);
      }
      sb.append("</div></body></html>");
      FileUtils.save(file.getOutputStream(false), sb.toString(), "utf-8");
    }
   
View Full Code Here

        removed = true;
        break;
      }
    }

    if (!removed) { throw new OLATRuntimeException(CPOrganizations.class, "error while removing child: child-element with identifier \""
        + id + "\" not found!", new Exception()); }

  }
View Full Code Here

  public void setParentElement(DefaultElement parent) {
    if (parent.getClass().equals(CPItem.class) || parent.getClass().equals(CPOrganization.class)) {
      this.parent = parent;
    } else {
      throw new OLATRuntimeException(CPOrganizations.class, "error while setting parentElement in element \"" + this.identifier
          + "\". Only <item> or <organization> as parent-element allowed", new Exception());
    }
  }
View Full Code Here

      // -> do the more fail-fast option a) at the moment for correctness reasons.
      System.err.println("###############################################################################################");
      System.err.println("### ClusterEventBus: communication error with JMS - cannot send messages!!!" + e);
      System.err.println("###############################################################################################");
     
      throw new OLATRuntimeException("communication error with JMS - cannot send messages!!!", e);
    }
    numOfSentMessages++;

      // store it for later access by the admin controller
    String sentMsg = "sent msg: from node:" + nodeId + ", olat-id:" + msgId + ", ores:"  + ores.getResourceableTypeName() + ":" + ores.getResourceableId()+", event:"+event;
View Full Code Here

    } catch (RuntimeException re) {
      log.error("Uncaught RuntimeException in ClusterEventBus.onMessage!", re);
      throw re;
    } catch (JMSException e) {
      log.warn("JMSException in ClusterEventBus.onMessage", e);
      throw new OLATRuntimeException("error when receiving jms messages", e);
    } catch(Throwable th) {
      log.error("Uncaught Throwable in ClusterEventBus.onMessage!", th);
    } finally {
      lastOnMessageFinishTime_ = System.currentTimeMillis();
      if (DBModule.isActivated()) {
View Full Code Here

  /**
   * @see org.olat.course.nodes.AssessableCourseNode#getCutValueConfiguration()
   */
  public Float getCutValueConfiguration() {
    throw new OLATRuntimeException(STCourseNode.class, "Cut value never defined for ST nodes", null);
  }
View Full Code Here

TOP

Related Classes of org.olat.core.logging.OLATRuntimeException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.