/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at legal-notices/CDDLv1_0.txt.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information:
* Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*
*
* Copyright 2008 Sun Microsystems, Inc.
* Portions copyright 2014-2015 ForgeRock AS.
*/
/**
* Exceptions thrown as a result of errors that occurred when decoding and
* modifying property values.
*/
{
/**
* Version ID required by serializable classes.
*/
/**
* Creates a new default behavior exception with a cause.
*
* @param pd
* The property definition whose default values could not be
* determined.
* @param cause
* The exception that prevented the default values from being
* determined.
* @return A new default behavior exception with a cause.
*/
{
return new PropertyException(pd,
}
/**
* Creates a new illegal property value exception.
*
* @param pd
* The property definition.
* @param value
* The illegal property value.
* @return A new illegal property value exception.
*/
{
}
/**
* Creates a new illegal property value exception.
*
* @param pd
* The property definition.
* @param value
* The illegal property value.
* @param cause
* The cause.
* @return A new illegal property value exception.
*/
{
}
/**
* Create a new property is mandatory exception.
*
* @param pd
* The property definition.
* @return A new property is mandatory exception.
*/
PropertyDefinition<?> pd)
{
.getName()));
}
/**
* Create a new property is read-only exception.
*
* @param pd
* The property definition.
* @return A new property is read-only exception.
*/
PropertyDefinition<?> pd)
{
.getName()));
}
/**
* Create a new property is single valued exception.
*
* @param pd
* The property definition.
* @return A new property is single valued exception.
*/
PropertyDefinition<?> pd)
{
return new PropertyException(pd,
}
/**
* Creates a new unknown property definition exception.
*
* @param pd
* The unknown property definition.
* @param p
* The visitor parameter if there was one.
* @return A new unknown property definition exception.
*/
{
return new PropertyException(pd,
}
/** Create the message. */
{
}
/** LocalizableMessage that explains the problem. */
/**
* The property definition associated with the property that caused the
* exception.
*/
{
}
{
}
/**
* Returns the message that explains the problem that occurred.
*
* @return Returns the message describing the problem that occurred (never
* <code>null</code>).
*/
{
return message;
}
/**
* Get the property definition associated with the property that caused the
* exception.
*
* @return Returns the property definition associated with the property that
* caused the exception.
*/
{
return pd;
}
}