Package org.bct.api
Class PropertyNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.bct.api.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 Summary
ConstructorsConstructorDescriptionPropertyNotFoundException(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 Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PropertyNotFoundException
Constructs a new PropertyNotFoundException with the specified detail message.- Parameters:
message- The detail message describing the missing property
-
PropertyNotFoundException
Constructs a new PropertyNotFoundException with the specified detail message and cause.- Parameters:
message- The detail message describing the missing propertycause- The underlying cause of the exception
-
PropertyNotFoundException
Constructs a new PropertyNotFoundException for a specific property name and object type.- Parameters:
propertyName- The name of the property that could not be foundobjectType- The type of object on which the property was sought
-
PropertyNotFoundException
Constructs 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 foundobjectType- The type of object on which the property was soughtcause- The underlying cause of the exception
-