public final class PropertyException extends RuntimeException
Modifier and Type | Method and Description |
---|---|
static PropertyException |
defaultBehaviorException(PropertyDefinition<?> pd,
Throwable cause)
Creates a new default behavior exception with a cause.
|
LocalizableMessage |
getMessageObject()
Returns the message that explains the problem that occurred.
|
PropertyDefinition<?> |
getPropertyDefinition()
Get the property definition associated with the property that caused the
exception.
|
static PropertyException |
illegalPropertyValueException(PropertyDefinition<?> pd,
Object value)
Creates a new illegal property value exception.
|
static PropertyException |
illegalPropertyValueException(PropertyDefinition<?> pd,
Object value,
Throwable cause)
Creates a new illegal property value exception.
|
static PropertyException |
propertyIsMandatoryException(PropertyDefinition<?> pd)
Create a new property is mandatory exception.
|
static PropertyException |
propertyIsReadOnlyException(PropertyDefinition<?> pd)
Create a new property is read-only exception.
|
static PropertyException |
propertyIsSingleValuedException(PropertyDefinition<?> pd)
Create a new property is single valued exception.
|
static PropertyException |
unknownPropertyDefinitionException(PropertyDefinition<?> pd,
Object p)
Creates a new unknown property definition exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static PropertyException defaultBehaviorException(PropertyDefinition<?> pd, Throwable cause)
pd
- The property definition whose default values could not be
determined.cause
- The exception that prevented the default values from being
determined.public static PropertyException illegalPropertyValueException(PropertyDefinition<?> pd, Object value)
pd
- The property definition.value
- The illegal property value.public static PropertyException illegalPropertyValueException(PropertyDefinition<?> pd, Object value, Throwable cause)
pd
- The property definition.value
- The illegal property value.cause
- The cause.public static PropertyException propertyIsMandatoryException(PropertyDefinition<?> pd)
pd
- The property definition.public static PropertyException propertyIsReadOnlyException(PropertyDefinition<?> pd)
pd
- The property definition.public static PropertyException propertyIsSingleValuedException(PropertyDefinition<?> pd)
pd
- The property definition.public static PropertyException unknownPropertyDefinitionException(PropertyDefinition<?> pd, Object p)
pd
- The unknown property definition.p
- The visitor parameter if there was one.public LocalizableMessage getMessageObject()
null
).public final PropertyDefinition<?> getPropertyDefinition()
Copyright © 2010-2016 ForgeRock AS. All Rights Reserved.