ariba.util.core
Class WrapperRuntimeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by ariba.util.core.WrapperRuntimeException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AWGenericException, FieldValueException

public class WrapperRuntimeException
extends java.lang.RuntimeException

The WrapperRuntimeException class provides a simple runtime exception for all the various problems which might occur within the FieldValue dispatch mechanism. In many cases, this simply wraps a caught-exception, however, in a few cases, this is the original exception. In either case, this class overrides the pertinent api's from Exception so that appropriate information can be extracted.

See Also:
Serialized Form

Constructor Summary
WrapperRuntimeException(java.lang.String message)
           
WrapperRuntimeException(java.lang.String message, java.lang.Throwable e)
           
WrapperRuntimeException(java.lang.Throwable e)
           
 
Method Summary
 java.lang.Exception getExceptionType(java.lang.Class exceptionClass)
          Provide a function to get a particular type of exception in the cause stack.
 java.lang.Throwable originalCause()
           
 java.lang.Exception originalException()
          Provides access to the original exception, if one exists.
 boolean wrapsException(java.lang.Class exceptionClass)
          Provide a function to determine if this is wrapping a particular kind of exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WrapperRuntimeException

public WrapperRuntimeException(java.lang.Throwable e)

WrapperRuntimeException

public WrapperRuntimeException(java.lang.String message)

WrapperRuntimeException

public WrapperRuntimeException(java.lang.String message,
                               java.lang.Throwable e)
Method Detail

wrapsException

public boolean wrapsException(java.lang.Class exceptionClass)
Provide a function to determine if this is wrapping a particular kind of exception.

Parameters:
exceptionClass - The exception class we are checking for instance of in exception stack.
Returns:
true If we wrap the passed in exception type.

getExceptionType

public java.lang.Exception getExceptionType(java.lang.Class exceptionClass)
Provide a function to get a particular type of exception in the cause stack.

Parameters:
exceptionClass - The exception class we are checking for instance of in exception stack.
Returns:
true If we wrap the passed in exception type.

originalCause

public java.lang.Throwable originalCause()

originalException

public java.lang.Exception originalException()
Provides access to the original exception, if one exists.

Returns:
the original exception which this WrapperRuntimeException is wrapping, or null if this exception was created with the "message" constructor.


AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.