Package org.apache.juneau
Class ExecutableException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.juneau.BasicRuntimeException
org.apache.juneau.ExecutableException
- All Implemented Interfaces:
- Serializable
General exception that occurs when trying to execute a constructor, method, or field using reflection.
 
See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionExecutableException(String message, Object... args) Constructor.ExecutableException(Throwable causedBy) Constructor.ExecutableException(Throwable causedBy, String message, Object... args) Constructor.
- 
Method SummaryModifier and TypeMethodDescriptionIf the thrown exception was anInvocationTargetExceptionreturns the target exception.Methods inherited from class org.apache.juneau.BasicRuntimeExceptionassertModifiable, fillInStackTrace, getCause, getMessage, initCause, isUnmodifiable, setMessage, setStackTrace, setUnmodifiable, unwrapMethods inherited from class java.lang.ThrowableaddSuppressed, getCause, getLocalizedMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, toString
- 
Constructor Details- 
ExecutableExceptionConstructor.- Parameters:
- causedBy- The cause of this exception.
- message- The- MessageFormat-style message.
- args- Optional- MessageFormat-style arguments.
 
- 
ExecutableExceptionConstructor.- Parameters:
- causedBy- The cause of this exception.
 
- 
ExecutableExceptionConstructor.- Parameters:
- message- The- MessageFormat-style message.
- args- Optional- MessageFormat-style arguments.
 
 
- 
- 
Method Details- 
getTargetExceptionIf the thrown exception was anInvocationTargetExceptionreturns the target exception. Otherwise returns the inner exception which is typicallyIllegalArgumentExceptionorIllegalAccessException.- Returns:
- The inner throwable.
 
 
-