public class WriteMessageException
extends java.lang.Exception
ExceptionHandler
of this package and the
appropriate setting, it will write only the message part and also only use the exception once.
If used once, an EndOfException
exception is then returned instead. This means that
you can catch and write the exception several times, or only once, which might lead to tidier
logging.Constructor and Description |
---|
WriteMessageException(java.lang.String message)
Create a new instance of WriteMessageException.
|
WriteMessageException(java.lang.String message,
boolean thisUseOnce)
Create a new instance of WriteMessageException.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
getUseOnce()
Get the value indicating to use only once.
|
public WriteMessageException(java.lang.String message)
message
- the error message.public WriteMessageException(java.lang.String message, boolean thisUseOnce)
message
- the error message.thisUseOnce
- if true pass through the logger only once, if false, then pass
through the logger each time.