Previous Topic: Exceptions with Directory-Level ValidationNext Topic: How to Configure Validation Rules


AttributeValidationException Constructor

When you create an AttributeValidationException object for a Java validate() method, use the following constructor:

Syntax
public AttributeValidationException(String attrName, 
       String attrValue, 
       String messageid,
       String message);
Parameters
attrName

Specifies the name of the managed object attribute being validated.

attrValue

Specifies the value to validate.

messageid

If the value cannot be validated, it provides the ID associated with the message to display. The ID corresponds to a message in the resource bundle IMSExceptions.properties.

message

Provides an additional message that can be displayed to the user. This parameter gives you an opportunity to display a more specific message than the one in the resource bundle, or a message from a custom resource bundle.

Note: For more information about AttributeValidationException, see the CA IdentityMinder Javadoc.