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>

public static class MethodProperty.MethodException extends RuntimeException
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 Details

    • MethodException

      public MethodException(Property property, String msg)
      Constructs a new MethodException with the specified detail message.
      Parameters:
      property - the property.
      msg - the detail message.
    • MethodException

      public MethodException(Property property, Throwable cause)
      Constructs a new MethodException from another exception.
      Parameters:
      property - the property.
      cause - the cause of the exception.
  • Method Details

    • getCause

      public Throwable getCause()
      Overrides:
      getCause in class Throwable
      See Also:
    • getMethodProperty

      public MethodProperty getMethodProperty()
      Gets the method property this exception originates from.
      Returns:
      MethodProperty or null if not a valid MethodProperty
    • getProperty

      public Property getProperty()
      Gets the method property this exception originates from.
      Returns:
      Property from which the exception originates