|
||||||||||
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 IdFactory |
idFactory The factory for generating identifiers. |
protected ThrowableHandleMode |
throwableHandleMode The configuration to control the handling of throwables. |
Constructor Summary | |
---|---|
protected |
AbstractExceptionContext(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 | |
---|---|
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
Constructor Detail |
---|
protected AbstractExceptionContext(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()
getThrowableHandleMode
in interface
ExceptionContext
ExceptionContext.getThrowableHandleMode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |