Class 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 Detail

      • ReflectionException

        public ReflectionException()
        Constructs an ReflectionException with null as its error detail message.
      • ReflectionException

        public ReflectionException​(String message)
        Constructs an ReflectionException with the specified detail message.
        Parameters:
        message - the detail message (which is saved for later retrieval by the Throwable.getMessage() method)
      • ReflectionException

        public ReflectionException​(Throwable cause)
        Constructs an ReflectionException with the specified cause and its detail message.
        Parameters:
        cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
      • ReflectionException

        public ReflectionException​(String message,
                                   Throwable cause)
        Constructs an ReflectionException with the specified detail message and cause.

        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 the Throwable.getMessage() method)
        cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)