Previous Topic: ExceptionsNext Topic: Exceptions with Directory-Level Validation


Exceptions with Task-Level Validation

With task-level validation errors, AttributeValidationException is thrown as shown in the following table:

Rule Type

How Thrown

Error Message Source

Regular expression

By CA IdentityMinder if the regular expression validation fails.

CA IdentityMinder uses a generalized exception message.

JavaScript

By CA IdentityMinder if the validate() method returns False.

The errorMessage parameter of the validate() method.

Java

By the custom validation rule or by CA IdentityMinder.

CA IdentityMinder throws the exception when the custom rule does not and the custom rule’s validate() method returns False.

One of the following sources:

  • If the custom validation rule throws the exception, the exception’s constructor. The constructor lets you specify the ID of a message in a resource bundle and the text of an additional message.
  • If CA IdentityMinder throws the exception, the errorMessage parameter of the validate() method.

If the validation rule implementation does not provide an error message, CA IdentityMinder uses a generalized error message.