Skip to content
Snippets Groups Projects
Commit edbae104 authored by srosse's avatar srosse
Browse files

OO-1889: remove the assert exception

parent 845cb60b
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,8 @@ import org.olat.core.gui.components.AbstractComponent;
import org.olat.core.gui.components.Component;
import org.olat.core.gui.components.ComponentCollection;
import org.olat.core.gui.components.ComponentRenderer;
import org.olat.core.logging.AssertException;
import org.olat.core.logging.OLog;
import org.olat.core.logging.Tracing;
/**
*
......@@ -37,6 +38,8 @@ import org.olat.core.logging.AssertException;
*/
public class ListPanel extends AbstractComponent implements ComponentCollection {
private static final OLog log = Tracing.createLoggerFor(ListPanel.class);
private static final ComponentRenderer RENDERER = new ListPanelRenderer();
private final List<Component> content = new ArrayList<>(3);
......@@ -63,7 +66,7 @@ public class ListPanel extends AbstractComponent implements ComponentCollection
*/
@Override
protected void doDispatchRequest(UserRequest ureq) {
throw new AssertException("a panel should never dispatch a request (unless it has droppables, which it has not), ureq = "+ureq);
log.error("a panel should never dispatch a request (unless it has droppables, which it has not), ureq = "+ureq);
}
public String getCssClass() {
......
......@@ -33,7 +33,8 @@ import org.olat.core.gui.components.Component;
import org.olat.core.gui.components.ComponentCollection;
import org.olat.core.gui.components.ComponentRenderer;
import org.olat.core.gui.render.ValidationResult;
import org.olat.core.logging.AssertException;
import org.olat.core.logging.OLog;
import org.olat.core.logging.Tracing;
/**
* Description:<br>
......@@ -45,6 +46,7 @@ import org.olat.core.logging.AssertException;
* @author Felix Jost, http://www.goodsolutions.ch
*/
public class OncePanel extends AbstractComponent implements ComponentCollection {
private static final OLog log = Tracing.createLoggerFor(OncePanel.class);
private static final ComponentRenderer RENDERER = new PanelRenderer();
private boolean hideOnNextValidate;
......@@ -92,7 +94,7 @@ public class OncePanel extends AbstractComponent implements ComponentCollection
@Override
protected void doDispatchRequest(UserRequest ureq) {
throw new AssertException("a panel should never dispatch a request (unless it has droppables, which it has not), ureq = "+ureq);
log.error("a panel should never dispatch a request (unless it has droppables, which it has not), ureq = "+ureq);
}
@Override
......
......@@ -35,6 +35,8 @@ import org.olat.core.gui.components.AbstractComponent;
import org.olat.core.gui.components.Component;
import org.olat.core.gui.components.ComponentRenderer;
import org.olat.core.logging.AssertException;
import org.olat.core.logging.OLog;
import org.olat.core.logging.Tracing;
/**
* Description: <br>
......@@ -44,6 +46,7 @@ import org.olat.core.logging.AssertException;
* @author Felix Jost
*/
public class SimpleStackedPanel extends AbstractComponent implements StackedPanel {
private static final OLog log = Tracing.createLoggerFor(SimpleStackedPanel.class);
private static final ComponentRenderer RENDERER = new PanelRenderer();
private Component curContent;
......@@ -62,8 +65,9 @@ public class SimpleStackedPanel extends AbstractComponent implements StackedPane
* delegate
* @param ureq
*/
@Override
protected void doDispatchRequest(UserRequest ureq) {
throw new AssertException("a panel should never dispatch a request (unless it has droppables, which it has not), ureq = "+ureq);
log.error("a panel should never dispatch a request (unless it has droppables, which it has not), ureq = "+ureq);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment