Package org.atlanmod.commons.reflect
Class ReflectionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.atlanmod.commons.reflect.ReflectionException
-
- All Implemented Interfaces:
Serializable
@ParametersAreNonnullByDefault public class ReflectionException extends RuntimeException
Exception thrown when an error occurred when using reflection.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ReflectionException()Constructs anReflectionExceptionwithnullas its error detail message.ReflectionException(String message)Constructs anReflectionExceptionwith the specified detailmessage.ReflectionException(String message, Throwable cause)Constructs anReflectionExceptionwith the specified detailmessageandcause.ReflectionException(Throwable cause)Constructs anReflectionExceptionwith the specifiedcauseand its detail message.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ReflectionException
public ReflectionException()
Constructs anReflectionExceptionwithnullas its error detail message.
-
ReflectionException
public ReflectionException(String message)
Constructs anReflectionExceptionwith the specified detailmessage.- Parameters:
message- the detail message (which is saved for later retrieval by theThrowable.getMessage()method)
-
ReflectionException
public ReflectionException(Throwable cause)
Constructs anReflectionExceptionwith the specifiedcauseand its detail message.- Parameters:
cause- the cause (which is saved for later retrieval by theThrowable.getCause()method). (Anullvalue is permitted, and indicates that the cause is nonexistent or unknown.)
-
ReflectionException
public ReflectionException(String message, Throwable cause)
Constructs anReflectionExceptionwith the specified detailmessageandcause.The detail message associated with cause is not automatically incorporated into this exception's detail message.
- Parameters:
message- the detail message (which is saved for later retrieval by theThrowable.getMessage()method)cause- the cause (which is saved for later retrieval by theThrowable.getCause()method). (Anullvalue is permitted, and indicates that the cause is nonexistent or unknown.)
-
-