com.ibm.pim.common
Interface ValidationError


public interface ValidationError

Provides the details of validation error

Since:
6.0.0

Nested Class Summary
static class ValidationError.Type
           
 
Field Summary
static java.lang.String copyright
           
 
Method Summary
 AttributeInstance getAttributeInstance()
          Get the AttributeInstance that this validation error corresponds to.
 java.lang.String getMessage()
          Get the message for this Validation Error
 ValidationError.Type getType()
          Get the type of the validation error
 

Field Detail

copyright

static final java.lang.String copyright
See Also:
Constant Field Values
Method Detail

getMessage

java.lang.String getMessage()
Get the message for this Validation Error

Returns:
the message for this ValidationError

getAttributeInstance

AttributeInstance getAttributeInstance()
Get the AttributeInstance that this validation error corresponds to. Note, this may return null.

Returns:
the attribute instance with this error
Throws:
java.lang.UnsupportedOperationException - if the error has no associated AttributeInstance

getType

ValidationError.Type getType()
Get the type of the validation error

Returns:
the type of the validation error
Throws:
PIMInternalException - If an internal error occurs