net.authorize.admc
Class AppendableException
java.lang.Object
java.lang.Throwable
java.lang.Exception
net.authorize.admc.AppendableException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- AuthNetException
public class AppendableException
- extends 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
LS
public static final String LS
- local line separator
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
appendages
public List<String> appendages
AppendableException
public AppendableException()
AppendableException
public AppendableException(String s)
- Parameters:
s
- WRITEME
AppendableException
public AppendableException(String string,
Throwable cause)
- Parameters:
string
- messagecause
- exception to bubble up
AppendableException
public AppendableException(Throwable cause)
- Parameters:
cause
- an exception we want to bubble up
appendMessage
public void appendMessage(String s)
- Parameters:
s
- message to append
getMessage
public String getMessage()
- Overrides:
getMessage
in class Throwable
- See Also:
Throwable.getMessage()