Package org.olat.core.logging

Examples of org.olat.core.logging.AssertException


   * @param text can be null and gets then replaced with empty string.
   */
  MessageController(UserRequest ureq, WindowControl control, int msgType, String title, String text) {
    super(ureq, control);
    if(msgType < 0 || msgType > VC_PAGES.length){
      throw new AssertException("provided message type is undefined, type given:"+msgType);
    }
    // use tranlsation keys from default package
    setTranslator(Util.createPackageTranslator(I18nManager.class, getLocale()));
    //
    msgVC = createVelocityContainer(VC_PAGES[msgType]);
View Full Code Here


  @Override
  protected void event(@SuppressWarnings("unused")
  UserRequest ureq, Component source, Event event) {
    // This is only simple text in this controller, there should no events come
    // along here.
    throw new AssertException("This is a simple Wrapper controller without meaning in event method: event from "+source.getComponentName()+" event:"+event.getCommand());
  }
View Full Code Here

   * controller
   *
   * @param node
   */
  private void checkNodeToAdd(GenericTreeNode node) {
    if (node.getUserObject() == null) { throw new AssertException(
        "GenericTreeNode to append/prepend needs to have a UserObject set! Please use setUserObject()."); }
  }
View Full Code Here

  @Override
  protected void event(@SuppressWarnings("unused")
  UserRequest ureq, Component source, Event event) {
    // This is only simple text in this controller, there should no events come
    // along here.
    throw new AssertException("This is a simple Wrapper controller without meaning in event method: event from "+source.getComponentName()+" event:"+event.getCommand());
  }
View Full Code Here

      ActionExtension ae = (ActionExtension) uobject;
      contentCtr1Tmp = createController(ae, ureq);
    } else {
      contentCtr1Tmp = handleOwnMenuTreeEvent(uobject, ureq);
    }
    if (contentCtr1Tmp == null) { throw new AssertException(
        "Node must either be an ActionExtension or implementation must handle this MenuTreeEvent: " + uobject.toString()); }
    return contentCtr1Tmp;
  }
View Full Code Here

    if (values == null) { // no selection made (possible for radioboxes, but not
      // for dropdown list) -> selected = -1
      //selected = -1;
      throw new OLATRuntimeException(StaticSingleSelectionElement.class, "error.noformpostdata", null, PACKAGE, "no value submitted!, name of element:"+getName(), null);
    }
    if (values.length != 1) throw new AssertException("got multiple values in singleselectionelement:" + getName());
    String key = values[0];
    selected = findPosByKey(key);
  }
View Full Code Here

  /**
   * @see org.olat.core.gui.formelements.SingleSelectionElement#getSelectedKey()
   */
  public String getSelectedKey() {
    if (selected == -1) throw new AssertException("no key selected");
    return getKey(selected);
  }
View Full Code Here

      jo.put("cmd", c.getCommand());
      jo.put("w", winId);
      jo.put("cda", c.getSubJSON());
      return jo;
    } catch (JSONException e) {
      throw new AssertException("json exception:", e);
    }
  }
View Full Code Here

        }
       
      }
      return root;
    } catch (JSONException e) {
      throw new AssertException("wrong data put into json object", e);
    }
  }
View Full Code Here

      public WindowControlInfo getWindowControlInfo() {
        return wci;
      }

      public void makeFlat() {
        throw new AssertException("should never be called!");
      }

      public BusinessControl getBusinessControl() {
        return origWCo.getBusinessControl();
      }
View Full Code Here

TOP

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

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.