org.enhydra.shark.api.client.wfbase
Class BaseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.enhydra.shark.api.RootException
              extended by org.enhydra.shark.api.client.wfbase.BaseException
All Implemented Interfaces:
java.io.Serializable

public final class BaseException
extends RootException

Java implementation of OMG defined exception. This is how OMG defines it:

BaseException is an exception that holds a sequence of BaseError structures - essentially a sequence of exceptions. The sequence is a push-down list so that the most recently occurring exception is first. This allows multiple exceptions to be returned so that multiple problems may be addressed, as where a user has a number of data entry errors or where consequential errors are recorded as a result of a low-level exception. The BaseException is returned by all operations defined in this specification to support implementations of the WfM Facility to raise implementation specific exceptions.

Our implementation is adapted for Java. Although we implemented possibility to be used as defined, we extended this exception from our RootException class, which allows us chaining exceptions, and in shark we use it only that way.

See Also:
Serialized Form

Field Summary
 BaseError[] errors
           
 
Constructor Summary
BaseException()
           
BaseException(BaseError[] _errors)
           
BaseException(java.lang.String message)
           
BaseException(java.lang.String $reason, BaseError[] _errors)
           
BaseException(java.lang.String message, java.lang.Throwable cause)
           
BaseException(java.lang.Throwable cause)
           
 
Method Summary
 
Methods inherited from class org.enhydra.shark.api.RootException
getCause, initCause, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

errors

public BaseError[] errors
Constructor Detail

BaseException

public BaseException()

BaseException

public BaseException(BaseError[] _errors)

BaseException

public BaseException(java.lang.String $reason,
                     BaseError[] _errors)

BaseException

public BaseException(java.lang.String message)

BaseException

public BaseException(java.lang.Throwable cause)

BaseException

public BaseException(java.lang.String message,
                     java.lang.Throwable cause)