public class SchemaViolationException extends ApplicationException
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
REQUIRED_ATTR_MISSING
String constant for a missing required attribute error.
|
static java.lang.String |
SCHEMA_VIOLATION
String constant for a schema violation error.
|
| Constructor and Description |
|---|
SchemaViolationException(java.lang.String errCode)
Constructs with an error code.
|
SchemaViolationException(java.lang.String errCode,
java.util.Collection collection)
Constructs with an error code and Collection of String of missing
attribute(s) name.
|
SchemaViolationException(java.lang.String errCode,
java.lang.Object[] tokens,
java.lang.Throwable cause)
Constructs with an error code, message tokens, and the cause exception.
|
SchemaViolationException(java.lang.String errCode,
java.lang.Throwable cause)
Constructs with an error code and the cause exception.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection |
getViolationAttrs()
Returns a Collection of String that are the attribute names of attributes
that violate the schema.
|
getErrorCode, getExtraMessagegetLocalizedMessage, getMessage, getMessage, getMessageId, getThrowable, getTokens, normalize, printStackTrace, printStackTrace, printStackTrace, toXMLpublic static final java.lang.String REQUIRED_ATTR_MISSING
public static final java.lang.String SCHEMA_VIOLATION
public SchemaViolationException(java.lang.String errCode)
errCode - Code for the error.public SchemaViolationException(java.lang.String errCode,
java.lang.Throwable cause)
errCode - Error code identifying the problem.cause - Throwable representing the exception causing this exception.public SchemaViolationException(java.lang.String errCode,
java.lang.Object[] tokens,
java.lang.Throwable cause)
errCode - Error code identifying the problem.tokens - Object[] containing string values for replaceable tokens
in the message bundle string.cause - Throwable representing the exception causing this exception.public SchemaViolationException(java.lang.String errCode,
java.util.Collection collection)
errCode - Error code identifying the problem.collection - Collection of String of missing attribute name(s).