Examples of AssertException


Examples of org.olat.core.logging.AssertException

   * @param container
   * @return this
   */
  public FormItem setLabelComponent(FormItem labelComponent, FormItemContainer container) {
    if(labelComponent == null){
      throw new AssertException("do not clear error by setting null, instead use showLabel(false).");
    }
   
    this.hasLabel = true;
    //initialize root form of form item
    FormLayoutContainer flc = (FormLayoutContainer)container;//TODO:pb: fix this hierarchy mismatch
View Full Code Here

Examples of org.olat.core.logging.AssertException

  /**
   * @see org.olat.core.gui.components.form.flexible.FormComponent#setErrorController(org.olat.core.gui.control.Controller)
   */
  public void setErrorComponent(FormItem errorFormItem, FormLayouter container) {
    if(errorFormItem == null){
      throw new AssertException("do not clear error by setting null, instead use showError(false).");
    }
    //initialize root form of form item
    FormLayoutContainer flc = (FormLayoutContainer)container;//TODO:pb: fix this hierarchy mismatch
    flc.register(errorFormItem);//errorFormItem must be part of the composite chain, that it gets dispatched
   
View Full Code Here

Examples of org.olat.core.logging.AssertException

   * WEB-INF/olat_extensions.xml and adds them to the portlets map
   * @param portletList
   */
  public void setPortletList(List portletList) {
    if (portletList == null)
      throw new AssertException("null value for portletList not allowed.");

    // check beans
    ExtensionManager extMgr = ExtensionManager.getInstance();
    try {
      for (Iterator iter = portletList.iterator(); iter.hasNext();) {
View Full Code Here

Examples of squirrel_util.AssertException

    }
    if (i > 0)
    s2 = s2.substring(i);
    break;
  default :
    throw new AssertException("This point should not be reached.");
  }
  }
}
Lang.ASSERT(s2 == null, "(tok == null) vioalted");
return stringbuffer.toString();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.