org.yawlfoundation.yawl.exceptions
Class YAWLException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.yawlfoundation.yawl.exceptions.YAWLException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
YAuthenticationException, YDataStateException, YEngineStateException, YExternalDataException, YLogException, YPersistenceException, YQueryException, YSchemaBuildingException, YStateException, YSyntaxException

public class YAWLException
extends Exception

Author:
Lachlan Aldred Date: 26/11/2004 Time: 15:26:54
See Also:
Serialized Form

Field Summary
protected static org.jdom.input.SAXBuilder _builder
           
protected  String _message
           
static String MESSAGE_NM
           
 
Constructor Summary
YAWLException()
           
YAWLException(String message)
           
YAWLException(String message, Throwable cause)
          Constructs a new exception with the specified detail message and cause.
YAWLException(Throwable cause)
          Constructs a new exception with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause).
 
Method Summary
 String getMessage()
           
protected static String parseMessage(org.jdom.Document exceptionDoc)
           
 void rethrow()
          A convenience method that effectively rethrows the exceptions listed.
 void setMessage(String message)
           
 String toXML()
           
protected  String toXMLGuts()
           
static YAWLException unmarshal(org.jdom.Document exceptionDoc)
           
 
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

_builder

protected static org.jdom.input.SAXBuilder _builder

_message

protected String _message

MESSAGE_NM

public static final String MESSAGE_NM
See Also:
Constant Field Values
Constructor Detail

YAWLException

public YAWLException()

YAWLException

public YAWLException(String message)

YAWLException

public YAWLException(Throwable cause)
Constructs a new exception with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause). This constructor is useful for exceptions that are little more than wrappers for other throwables (for example, PrivilegedActionException).

Parameters:
cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
Since:
1.4

YAWLException

public YAWLException(String message,
                     Throwable cause)
Constructs a new exception with the specified detail message and cause.

Note that the detail message associated with cause is not automatically incorporated in this exception's detail message.

Parameters:
message - the detail message (which is saved for later retrieval by the getMessage() method).
cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
Since:
1.4
Method Detail

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable

toXML

public String toXML()

toXMLGuts

protected String toXMLGuts()

unmarshal

public static YAWLException unmarshal(org.jdom.Document exceptionDoc)
                               throws org.jdom.JDOMException,
                                      IOException,
                                      ClassNotFoundException,
                                      InstantiationException,
                                      IllegalAccessException
Throws:
org.jdom.JDOMException
IOException
ClassNotFoundException
InstantiationException
IllegalAccessException

parseMessage

protected static String parseMessage(org.jdom.Document exceptionDoc)

setMessage

public void setMessage(String message)

rethrow

public void rethrow()
             throws YStateException,
                    YDataStateException,
                    YQueryException,
                    YPersistenceException
A convenience method that effectively rethrows the exceptions listed. Caveat: ALL 5 exceptions must appear in the throws clause of any methods that call this method.

Throws:
YStateException
YDataStateException
YQueryException
YPersistenceException


Copyright © 2004-2012 The YAWL Foundation.