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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcontextualize(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:
contextualizein interfaceContextualizable- Throws:
ContextException
-
getExceptionXSLURI
Description copied from interface:ExceptionHandlerReturns an URI corresponding to the XSL responsible to render the Exception- Specified by:
getExceptionXSLURIin 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
-