net.authorize.admc
Class AppendableException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by 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
 
Constructor Summary
AppendableException()
           
AppendableException(java.lang.String s)
           
AppendableException(java.lang.String string, java.lang.Throwable cause)
           
AppendableException(java.lang.Throwable cause)
           
 
Method Summary
 void appendMessage(java.lang.String s)
           
 java.lang.String getMessage()
           
 
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
 

Field Detail

LS

public static final java.lang.String LS
local line separator


appendages

public java.util.List<java.lang.String> appendages
Constructor Detail

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 - message
cause - exception to bubble up

AppendableException

public AppendableException(java.lang.Throwable cause)
Parameters:
cause - an exception we want to bubble up
Method Detail

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()