Package com.iizix.prop
Class PropException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.iizix.prop.PropException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
FocusException
,PropTypeException
,PropValidateException
,ValueConversionException
Exception thrown when a property is set and doesn't validate correctly.
- Author:
- Christopher Mindus
- See Also:
Constructor Summary
ConstructorDescriptionPropException
(GProp<?> property) Creates a property exception with an empty detail message.PropException
(GProp<?> property, String message) Creates a property exception with a message.PropException
(GProp<?> property, String message, Throwable exception) Creates a property exception with a message and an exception cause.Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
Constructor Details
PropException
Creates a property exception with an empty detail message.- Parameters:
property
- the originator property.- Throws:
NullPointerException
- ifproperty
parameter is null.
PropException
Creates a property exception with a message.- Parameters:
property
- the originator property.message
- the detail message.- Throws:
NullPointerException
- ifproperty
parameter is null.
PropException
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
- ifproperty
parameter is null.
Method Details
getProperty
Gets the property that caused the exception.- Returns:
- The (non-null) property instance.
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
getLocalizedMessage
returnsnull
, then just the class name is returned.