| | |
| | | * Exceptions thrown as a result of errors that occurred when decoding and |
| | | * modifying property values. |
| | | */ |
| | | public final class PropertyException extends AdminRuntimeException |
| | | public final class PropertyException extends RuntimeException |
| | | { |
| | | |
| | | /** |
| | |
| | | |
| | | |
| | | |
| | | // Message that explains the problem. |
| | | private final Message message; |
| | | |
| | | /* |
| | | * The property definition associated with the property that caused the |
| | | * exception. |
| | |
| | | |
| | | private PropertyException(PropertyDefinition<?> pd, Message message) |
| | | { |
| | | super(message); |
| | | super(message.toString()); |
| | | this.message = message; |
| | | this.pd = pd; |
| | | } |
| | | |
| | |
| | | private PropertyException(PropertyDefinition<?> pd, Message message, |
| | | Throwable cause) |
| | | { |
| | | super(message, cause); |
| | | super(message.toString(), cause); |
| | | this.message = message; |
| | | this.pd = pd; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Returns the message that explains the problem that occurred. |
| | | * |
| | | * @return Returns the message describing the problem that occurred (never |
| | | * <code>null</code>). |
| | | */ |
| | | public Message getMessageObject() |
| | | { |
| | | return message; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Get the property definition associated with the property that caused the |
| | | * exception. |
| | | * |