Class PropException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
FocusException, PropTypeException, PropValidateException, ValueConversionException

public class PropException extends Exception
Exception thrown when a property is set and doesn't validate correctly.
Author:
Christopher Mindus
See Also:
  • Constructor Details

    • PropException

      public PropException(GProp<?> property)
      Creates a property exception with an empty detail message.
      Parameters:
      property - the originator property.
      Throws:
      NullPointerException - if property parameter is null.
    • PropException

      public PropException(GProp<?> property, String message)
      Creates a property exception with a message.
      Parameters:
      property - the originator property.
      message - the detail message.
      Throws:
      NullPointerException - if property parameter is null.
    • PropException

      public PropException(GProp<?> property, String message, Throwable exception)
      Creates a property exception with a message and an exception cause.
      Parameters:
      property - the originator property.
      message - the detail message.
      exception - the exception, i.e. the real cause.
      Throws:
      NullPointerException - if property parameter is null.
  • Method Details

    • getProperty

      public GProp<?> getProperty()
      Gets the property that caused the exception.
      Returns:
      The (non-null) property instance.
    • toString

      public String toString()
      Returns a short description of this throwable. The result is the concatenation of: If getLocalizedMessage returns null, then just the class name is returned.
      Overrides:
      toString in class Throwable
      Returns:
      a string representation of this throwable.