Package org.ametys.runtime.exception
Class DefaultExceptionHandler
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.ametys.runtime.exception.DefaultExceptionHandler
- All Implemented Interfaces:
ExceptionHandler
,Contextualizable
,LogEnabled
,ThreadSafe
public class DefaultExceptionHandler
extends AbstractLogEnabled
implements ExceptionHandler, ThreadSafe, Contextualizable
Simple ExceptionHandler pointing to the default error XSL.
In
In
WEB-INF/stylesheets/error
or in the runtime jar in pages/error/error.xsl
-
Field Summary
Fields inherited from interface org.ametys.runtime.exception.ExceptionHandler
ROLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
contextualize
(Context context) getExceptionXSLURI
(String code) Returns an URI corresponding to the XSL responsible to render the ExceptionMethods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Constructor Details
-
DefaultExceptionHandler
public DefaultExceptionHandler()Constructor as component
-
-
Method Details
-
contextualize
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
getExceptionXSLURI
Description copied from interface:ExceptionHandler
Returns an URI corresponding to the XSL responsible to render the Exception- Specified by:
getExceptionXSLURI
in interfaceExceptionHandler
- Parameters:
code
- the HTTP response status code corresponding to the handled exception- Returns:
- an URI corresponding to the XSL responsible to render the Exception
-