Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OLAT CI-CD Testing Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lars Oliver Dam
OLAT CI-CD Testing Project
Commits
da988c40
Commit
da988c40
authored
9 years ago
by
srosse
Browse files
Options
Downloads
Patches
Plain Diff
OO-1834: reduce the error from AssertException to a simple error in log files
parent
2df08f89
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/org/olat/core/gui/components/panel/Panel.java
+6
-2
6 additions, 2 deletions
src/main/java/org/olat/core/gui/components/panel/Panel.java
with
6 additions
and
2 deletions
src/main/java/org/olat/core/gui/components/panel/Panel.java
+
6
−
2
View file @
da988c40
...
...
@@ -26,7 +26,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
;
/**
*
...
...
@@ -34,7 +35,9 @@ import org.olat.core.logging.AssertException;
*
*/
public
class
Panel
extends
AbstractComponent
implements
ComponentCollection
{
private
static
final
ComponentRenderer
RENDERER
=
new
PanelRenderer
();
private
static
final
OLog
log
=
Tracing
.
createLoggerFor
(
Panel
.
class
);
private
Component
curContent
;
/**
...
...
@@ -50,8 +53,9 @@ public class Panel extends AbstractComponent implements ComponentCollection {
* 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
,
null
);
}
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment