When the current value is being computed, it is possible that the operation throws an exception. In that case that exception is forwarded to the caller by wrapping it into an instance of PropertyComputationFailedException.
This is in order to be able to cache the results of a computation, and always provide a consistent interface for the computations.
The originally thrown exception can be retrieved by calling getCause().
public | PropertyComputationFailedException( Constructs a new runtime exception with the specified detail message and cause. |
protected | PropertyComputationFailedException( Constructs a new runtime exception with the specified detail message, cause, suppression enabled or disabled, and
writable stack trace enabled or disabled. |
public | Constructs a new runtime 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). |
public Throwable | getCause() Gets the exception that caused the failure of the property value computation. |
Note that the detail message associated with cause
is not automatically incorporated in this
runtime exception's detail message.
null
value is permitted, and indicates that the cause is nonexistent or
unknown.)
Returns the cause of this throwable or null
if the cause is nonexistent or unknown.(The cause is the
throwable that caused this throwable to get thrown.)
This implementation returns the cause that was supplied via one of the constructors requiring a
Throwable
, or that was set after creation with the initCause(Throwable
. Note that it is not necessary to override any of the PrintStackTrace
methods,
all of which invoke the getCause
method to determine the cause of a throwable.
null
if the cause is nonexistent or unknown.