ariba.util.fieldvalue
Class FieldValueException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by ariba.util.core.WrapperRuntimeException
                  extended by ariba.util.fieldvalue.FieldValueException
All Implemented Interfaces:
java.io.Serializable

public class FieldValueException
extends WrapperRuntimeException

The FieldValueException class provides a simple runtime exception for all the various problems which might occur within the FieldValue dispatch mechanism. See WrapperRuntimeException for details.

See Also:
Serialized Form

Constructor Summary
FieldValueException(java.lang.Exception exception)
          Constructs a new FieldValueException that merely wraps a caught-exception.
FieldValueException(java.lang.String message)
          Constructs a FieldValueException with a descriptive message.
 
Method Summary
static void throwException(java.lang.Throwable throwable)
          Converts a Throwable into a RuntimeException or Error and rethrows it.
static java.lang.RuntimeException wrapException(java.lang.Exception exception)
          Deprecated. Use throwException(...) Converts an exception into a RuntimeException. If the exception is already a RuntimeException, it is simply returned. Otherwise, it is wrapped in a FieldValueException.
 
Methods inherited from class ariba.util.core.WrapperRuntimeException
getExceptionType, originalCause, originalException, wrapsException
 
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

FieldValueException

public FieldValueException(java.lang.String message)
Constructs a FieldValueException with a descriptive message.

Parameters:
message - a message desribing the error condition.

FieldValueException

public FieldValueException(java.lang.Exception exception)
Constructs a new FieldValueException that merely wraps a caught-exception.

Parameters:
exception - the exception which is wrapped (and converted into a runtime exception)
Method Detail

wrapException

public static java.lang.RuntimeException wrapException(java.lang.Exception exception)
Deprecated. Use throwException(...) Converts an exception into a RuntimeException. If the exception is already a RuntimeException, it is simply returned. Otherwise, it is wrapped in a FieldValueException.

Parameters:
exception - the exception to be wrapped.
Returns:
a new instance of FieldValueException or the original exceptio if its already a RuntimeException.

throwException

public static void throwException(java.lang.Throwable throwable)
Converts a Throwable into a RuntimeException or Error and rethrows it. If the Throwable is already a RuntimeException or Error, it is simply rethrown. Otherwise, it is wrapped in a FieldValueException.

Parameters:
throwable - the throwable to be converted and rethrown.


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