Class PropException

    • Constructor Summary

      Constructors 
      ConstructorDescription
      PropException​(GProp<?> property)
      Creates a property exception with an empty detail message.
      PropException​(GProp<?> property, java.lang.String message)
      Creates a property exception with a message.
      PropException​(GProp<?> property, java.lang.String message, java.lang.Throwable exception)
      Creates a property exception with a message and an exception cause.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      GProp<?>getProperty()
      Gets the property that caused the exception.
      java.lang.StringtoString()
      Returns a short description of this throwable.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • PropException

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

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

        public PropException​(GProp<?> property,
                             java.lang.String message,
                             java.lang.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:
        java.lang.NullPointerException - if property parameter is null.
    • Method Detail

      • getProperty

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

        public java.lang.String toString()
        Returns a short description of this throwable. The result is the concatenation of:
        • the name of the class of this object
        • ": " (a colon and a space)
        • the result of invoking this object's Throwable.getLocalizedMessage() method
        If getLocalizedMessage returns null, then just the class name is returned.
        Overrides:
        toString in class java.lang.Throwable
        Returns:
        a string representation of this throwable.