net.authorize.admc
Class AppendableException
java.lang.Object
java.lang.Throwable
java.lang.Exception
net.authorize.admc.AppendableException
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- AuthNetException
public class AppendableException
- extends java.lang.Exception
Allows additional messages to be appended.
It often makes for better (and more efficient) design to add context
details to an exception at intermediate points in the thread. This
class makes it easy and efficient to catch and re-throw for that
purpose. It does this in a much more straight-forward way than
wrapping Throwables when all you really want to do is add more text.
- See Also:
- Serialized Form
Field Summary |
java.util.List<java.lang.String> |
appendages
|
static java.lang.String |
LS
local line separator |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LS
public static final java.lang.String LS
- local line separator
appendages
public java.util.List<java.lang.String> appendages
AppendableException
public AppendableException()
AppendableException
public AppendableException(java.lang.String s)
- Parameters:
s
- WRITEME
AppendableException
public AppendableException(java.lang.String string,
java.lang.Throwable cause)
- Parameters:
string
- messagecause
- exception to bubble up
AppendableException
public AppendableException(java.lang.Throwable cause)
- Parameters:
cause
- an exception we want to bubble up
appendMessage
public void appendMessage(java.lang.String s)
- Parameters:
s
- message to append
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in class java.lang.Throwable
- See Also:
Throwable.getMessage()