Class BeanPropertyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.osgi.service.cdi.propertytypes.BeanPropertyException
- All Implemented Interfaces:
Serializable
This Runtime Exception is thrown when a Bean Property Type method attempts an
invalid component property coercion. For example when the bean property type
method
Long test();
is applied to a component property "test"
of type String.- See Also:
-
Constructor Summary
ConstructorDescriptionBeanPropertyException
(String message) Create a Bean Property Exception with a message.BeanPropertyException
(String message, Throwable cause) Create a Bean Property Exception with a message and a nested 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
-
BeanPropertyException
Create a Bean Property Exception with a message.- Parameters:
message
- The message for this exception.
-
BeanPropertyException
Create a Bean Property Exception with a message and a nested cause.- Parameters:
message
- The message for this exception.cause
- The causing exception.
-