Package org.apache.juneau.junit.bct
Class PropertyNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.juneau.junit.bct.PropertyNotFoundException
- All Implemented Interfaces:
- Serializable
Exception thrown when a requested property cannot be found on an object.
 
This exception is typically thrown by PropertyExtractor implementations
 when attempting to access a property that does not exist on the target object.
Examples:
   
   
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionPropertyNotFoundException(String message) Constructs a new PropertyNotFoundException with the specified detail message.PropertyNotFoundException(String propertyName, Class<?> objectType) Constructs a new PropertyNotFoundException for a specific property name and object type.PropertyNotFoundException(String propertyName, Class<?> objectType, Throwable cause) Constructs a new PropertyNotFoundException for a specific property name and object type with a cause.PropertyNotFoundException(String message, Throwable cause) Constructs a new PropertyNotFoundException with the specified detail message and cause.
- 
Method SummaryMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
PropertyNotFoundExceptionConstructs a new PropertyNotFoundException with the specified detail message.- Parameters:
- message- The detail message describing the missing property
 
- 
PropertyNotFoundExceptionConstructs a new PropertyNotFoundException with the specified detail message and cause.- Parameters:
- message- The detail message describing the missing property
- cause- The underlying cause of the exception
 
- 
PropertyNotFoundExceptionConstructs a new PropertyNotFoundException for a specific property name and object type.- Parameters:
- propertyName- The name of the property that could not be found
- objectType- The type of object on which the property was sought
 
- 
PropertyNotFoundExceptionConstructs a new PropertyNotFoundException for a specific property name and object type with a cause.- Parameters:
- propertyName- The name of the property that could not be found
- objectType- The type of object on which the property was sought
- cause- The underlying cause of the exception
 
 
-