com.reverseXSL.exception
Class FormattedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.reverseXSL.exception.FormattedException
All Implemented Interfaces:
java.io.Serializable

public class FormattedException
extends java.lang.Exception

FormattedException is the root of all exceptions that are handled according to the 'i18n' multi-language support standard by the reverseXSL software.

This class is abstract to ensure that an implementation only throws a specific exception (e.g. ParserException) which is a sub-class.

Implementations of methods that throw FormattedException often bear throw clauses that are more specific than FormattedException (i.e. child classes references).

See Also:
MessageFormat, Serialized Form

Method Summary
 java.lang.Throwable getCause()
           
 java.lang.String getLocalizedMessage()
           
 java.lang.String getMessage()
          Get the formatted message through the FormattingService, itself based on MessageFormat.
 java.lang.String toString()
          Similar to getMessage(), prefixed with the error code.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getCause

public java.lang.Throwable getCause()
Overrides:
getCause in class java.lang.Throwable

getLocalizedMessage

public java.lang.String getLocalizedMessage()
Overrides:
getLocalizedMessage in class java.lang.Throwable

getMessage

public java.lang.String getMessage()
Get the formatted message through the FormattingService, itself based on MessageFormat.

Overrides:
getMessage in class java.lang.Throwable

toString

public java.lang.String toString()
Similar to getMessage(), prefixed with the error code.

Overrides:
toString in class java.lang.Throwable