org.ejen
Class EjenException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--org.ejen.EjenException
All Implemented Interfaces:
Serializable

public class EjenException
extends RuntimeException

Ejen exception class. May wrap another exception.

Version:
1.0
Author:
F. Wolff
See Also:
Serialized Form

Field Summary
protected  EjenChildNode _ejenChildNode
           
protected  Throwable _embeddedThrowable
           
protected  String _message
           
 
Constructor Summary
EjenException(EjenChildNode ejenChildNode, String message)
          Constructor.
EjenException(EjenChildNode ejenChildNode, String message, Throwable t)
          Constructor.
 
Method Summary
 EjenChildNode getEjenChildNode()
          Returns the EjenChildNode that have thrown this EjenException.
 Throwable getEmbeddedThrowable()
          Returns the embedded exception.
 String getMessage()
          Returns a compound message: "<ecn> {<attrs>}: <msg> [<eemsg>]", where: <ecn> is the name of the EjenChildNode that have thrown this EjenException.
 String getRawMessage()
          Returns the message associated with this EjenException.
 
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

_ejenChildNode

protected EjenChildNode _ejenChildNode

_message

protected String _message

_embeddedThrowable

protected Throwable _embeddedThrowable
Constructor Detail

EjenException

public EjenException(EjenChildNode ejenChildNode,
                     String message)
Constructor.

Parameters:
ejenChildNode - the EjenChildNode that is throwing this EjenException.
message - the message associated with this EjenException.

EjenException

public EjenException(EjenChildNode ejenChildNode,
                     String message,
                     Throwable t)
Constructor.

Parameters:
ejenChildNode - the EjenChildNode that is throwing this EjenException.
message - the message associated with this EjenException.
t - an embedded exception.
Method Detail

getMessage

public String getMessage()
Returns a compound message: "<ecn> {<attrs>}: <msg> [<eemsg>]", where:

Overrides:
getMessage in class Throwable
Returns:
the compound message.

getEmbeddedThrowable

public Throwable getEmbeddedThrowable()
Returns the embedded exception.

Returns:
the embedded message (may be null).

getEjenChildNode

public EjenChildNode getEjenChildNode()
Returns the EjenChildNode that have thrown this EjenException.

Returns:
the EjenChildNode.

getRawMessage

public String getRawMessage()
Returns the message associated with this EjenException.

Returns:
the message (may be null).