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:
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

Field Summary
 List<String> appendages
           
static String LS
          local line separator
private static long serialVersionUID
           
 
Constructor Summary
AppendableException()
           
AppendableException(String s)
           
AppendableException(String string, Throwable cause)
           
AppendableException(Throwable cause)
           
 
Method Summary
 void appendMessage(String s)
           
 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

AppendableException

public AppendableException()

AppendableException

public AppendableException(String s)
Parameters:
s - WRITEME

AppendableException

public AppendableException(String string,
                           Throwable cause)
Parameters:
string - message
cause - exception to bubble up

AppendableException

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

appendMessage

public void appendMessage(String s)
Parameters:
s - message to append

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable
See Also:
Throwable.getMessage()