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 Summary
ConstructorDescriptionExecutableException
(String message, Object... args) Constructor.ExecutableException
(Throwable causedBy) Constructor.ExecutableException
(Throwable causedBy, String message, Object... args) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionIf the thrown exception was anInvocationTargetException
returns the target exception.Methods inherited from class org.apache.juneau.BasicRuntimeException
assertModifiable, fillInStackTrace, getCause, getMessage, initCause, isUnmodifiable, setMessage, setStackTrace, setUnmodifiable, unwrap
Methods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, toString
-
Constructor Details
-
ExecutableException
Constructor.- Parameters:
causedBy
- The cause of this exception.message
- TheMessageFormat
-style message.args
- OptionalMessageFormat
-style arguments.
-
ExecutableException
Constructor.- Parameters:
causedBy
- The cause of this exception.
-
ExecutableException
Constructor.- Parameters:
message
- TheMessageFormat
-style message.args
- OptionalMessageFormat
-style arguments.
-
-
Method Details
-
getTargetException
If the thrown exception was anInvocationTargetException
returns the target exception. Otherwise returns the inner exception which is typicallyIllegalArgumentException
orIllegalAccessException
.- Returns:
- The inner throwable.
-