|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.exceptions.context.AbstractExceptionContext
public abstract class AbstractExceptionContext
Provides exception relevant information for an exception context as an abstract class. There is one context for each class loader that is stored by the ExceptionContextManager
.
Field Summary | |
---|---|
protected CodeMessageFormatter |
formatter Formatter for instances of CoreException . |
protected IdFactory |
idFactory The factory for generating identifiers. |
protected ThrowableHandleMode |
throwableHandleMode The configuration to control the handling of throwables. |
Constructor Summary | |
---|---|
protected |
AbstractExceptionContext(org.apache.commons.configuration.Configuration configuration) Default constructor providing a configuration. |
protected |
AbstractExceptionContext(InputStream in) Convenience constructor providing an input stream. |
protected |
AbstractExceptionContext(Reader reader) Convenience constructor providing a reader. |
protected |
AbstractExceptionContext(URL url) Convenience constructor providing an URL. |
Method Summary | |
---|---|
CodeMessageFormatter |
getCodeMessageFormatter() Returns the formatter for code messages. |
IdFactory |
getIdFactory() Returns the factory for generating identifiers. |
ThrowableHandleMode |
getThrowableHandleMode() Returns the configuration to control the handling of throwables. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final IdFactory idFactory
protected final ThrowableHandleMode throwableHandleMode
protected final CodeMessageFormatter formatter
CoreException
.
Constructor Detail |
---|
protected AbstractExceptionContext(org.apache.commons.configuration.Configuration configuration) throws IllegalArgumentException
configuration
- the parameters to configure this context.
IllegalArgumentException
- if any configuration parameter value is illegal.
protected AbstractExceptionContext(InputStream in) throws IllegalArgumentException
in
- the stream to read the configuration from.
IllegalArgumentException
- if any configuration parameter value is illegal.
protected AbstractExceptionContext(Reader reader) throws IllegalArgumentException
reader
- the reader to read the configuration from.
IllegalArgumentException
- if any configuration parameter value is illegal.
protected AbstractExceptionContext(URL url) throws IllegalArgumentException
url
- the URL pointing to the configuration to read.
IllegalArgumentException
- if any configuration parameter value is illegal.
Method Detail |
---|
public IdFactory getIdFactory()
getIdFactory
in interface
ExceptionContext
public ThrowableHandleMode getThrowableHandleMode()
ExceptionContext
getThrowableHandleMode
in interface
ExceptionContext
public CodeMessageFormatter getCodeMessageFormatter()
ExceptionContext
getCodeMessageFormatter
in interface
ExceptionContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |