Package org.kiwiproject.reflect
Class RuntimeReflectionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.kiwiproject.reflect.RuntimeReflectionException
-
- All Implemented Interfaces:
Serializable
public class RuntimeReflectionException extends RuntimeException
A custom runtime exception for wrapping (checked or unchecked) exceptions related to reflection.There are no restrictions on the wrapped
Throwable, but the intent is that they should be some checked or unchecked exception that was thrown by a reflective operation, e.g. reflectively finding or invoking a method, or accessing a field.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RuntimeReflectionException(String message, Throwable cause)Construct a new instance with the given message and cause.RuntimeReflectionException(Throwable cause)Construct a new instance with and cause.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
RuntimeReflectionException
public RuntimeReflectionException(String message, Throwable cause)
Construct a new instance with the given message and cause.- Parameters:
message- the detail messagecause- the underlying cause
-
RuntimeReflectionException
public RuntimeReflectionException(Throwable cause)
Construct a new instance with and cause.- Parameters:
cause- the underlying cause
-
-