Directory-Level Validation Exceptions

Exception messages for directory-level validation errors come from two sources:
cim1265
Exception messages for directory-level validation errors come from two sources:
  • A resource bundle. In directory.xml, definitions of all types of validation rules (Java, JavaScript, and regular expression) include the attribute messageid. This ID maps to a custom exception message in the resource bundle IMSExceptions.properties. When AttributeValidationException is thrown,
    includes the mapped message with other error information that may be defined for the validation rule.
  • Custom validation rule code. Java and JavaScript implementations can define additional exception messages for the rule. If a validation error occurs in the Java or JavaScript rule, the message is presented to the user with the message that is mapped to the rule in the resource bundle.
    The sources of these Java and JavaScript exception messages are defined in the previous table.
    This feature does not apply to directory-level validation rules implemented as regular expressions.
For more information about exception messages in resource bundles, see AttributeValidationException in the
Javadoc.