Package com.vaadin.featurepack.data.util
Class MethodProperty.MethodException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.vaadin.featurepack.data.util.MethodProperty.MethodException
- All Implemented Interfaces:
Serializable
- Enclosing class:
MethodProperty<T>
Exception object that signals that there were problems
calling or finding the specified getter or setter methods of the
property.- Since:
- 3.0
- Author:
- Vaadin Ltd.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMethodException(Property property, String msg) Constructs a newMethodExceptionwith the specified detail message.MethodException(Property property, Throwable cause) Constructs a newMethodExceptionfrom another exception. -
Method Summary
Modifier and TypeMethodDescriptiongetCause()Gets the method property this exception originates from.Gets the method property this exception originates from.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MethodException
Constructs a newMethodExceptionwith the specified detail message.- Parameters:
property- the property.msg- the detail message.
-
MethodException
Constructs a newMethodExceptionfrom another exception.- Parameters:
property- the property.cause- the cause of the exception.
-
-
Method Details
-
getCause
-
getMethodProperty
Gets the method property this exception originates from.- Returns:
- MethodProperty or null if not a valid MethodProperty
-
getProperty
Gets the method property this exception originates from.- Returns:
- Property from which the exception originates
-