Class IntrospectionError

  • All Implemented Interfaces:
    java.io.Serializable

    public class IntrospectionError
    extends java.lang.RuntimeException
    Error that occurred when using JavaBeans Introspection.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Throwable getterInvocationException
      This (nullable) field holds the original Exception thrown by the tested code during the invocation of a getter/accessor method.
      private static long serialVersionUID  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<java.lang.Throwable> getterInvocationException()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • getterInvocationException

        private final java.lang.Throwable getterInvocationException
        This (nullable) field holds the original Exception thrown by the tested code during the invocation of a getter/accessor method. This allows us to reference or rethrow it if alternative means of resolving the field are unsuccessful.
    • Constructor Detail

      • IntrospectionError

        public IntrospectionError​(java.lang.String message)
        Creates a new IntrospectionError.
        Parameters:
        message - the detail message.
      • IntrospectionError

        public IntrospectionError​(java.lang.String message,
                                  java.lang.Throwable cause)
        Creates a new IntrospectionError.
        Parameters:
        message - the detail message.
        cause - the original cause.
      • IntrospectionError

        public IntrospectionError​(java.lang.String message,
                                  java.lang.Throwable cause,
                                  java.lang.Throwable getterInvocationException)
        Creates a new IntrospectionError.
        Parameters:
        message - the detail message.
        cause - the original cause.
        getterInvocationException - the original exception thrown by the tested code.
    • Method Detail

      • getterInvocationException

        public java.util.Optional<java.lang.Throwable> getterInvocationException()