Class IntrospectionError
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.assertj.core.util.introspection.IntrospectionError
-
- All Implemented Interfaces:
java.io.Serializable
public class IntrospectionError extends java.lang.RuntimeExceptionError that occurred when using JavaBeans Introspection.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.ThrowablegetterInvocationExceptionThis (nullable) field holds the original Exception thrown by the tested code during the invocation of a getter/accessor method.private static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description IntrospectionError(java.lang.String message)Creates a new.IntrospectionErrorIntrospectionError(java.lang.String message, java.lang.Throwable cause)Creates a new.IntrospectionErrorIntrospectionError(java.lang.String message, java.lang.Throwable cause, java.lang.Throwable getterInvocationException)Creates a new.IntrospectionError
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<java.lang.Throwable>getterInvocationException()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
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.
-
-