public enum ErrorType extends Enum<ErrorType>
| Enum Constant and Description |
|---|
DUPLICATE_ATTRIBUTE |
DUPLICATE_ELEMENT |
INVALID_ATTRIBUTE_VALUE |
REQUIRED_ATTRIBUTE_MISSING |
REQUIRED_ELEMENT_MISSING |
REQUIRED_ELEMENTS_MISSING |
UNEXPECTED_ATTRIBUTE |
UNEXPECTED_ELEMENT |
UNKNOWN_ERROR |
UNSUPPORTED_ELEMENT |
| Modifier and Type | Method and Description |
|---|---|
ErrorHandler |
handler() |
static ErrorType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ErrorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ErrorType DUPLICATE_ATTRIBUTE
public static final ErrorType DUPLICATE_ELEMENT
public static final ErrorType INVALID_ATTRIBUTE_VALUE
public static final ErrorType REQUIRED_ATTRIBUTE_MISSING
public static final ErrorType REQUIRED_ELEMENT_MISSING
public static final ErrorType REQUIRED_ELEMENTS_MISSING
public static final ErrorType UNEXPECTED_ATTRIBUTE
public static final ErrorType UNEXPECTED_ELEMENT
public static final ErrorType UNKNOWN_ERROR
public static final ErrorType UNSUPPORTED_ELEMENT
public static ErrorType[] values()
for (ErrorType c : ErrorType.values()) System.out.println(c);
public static ErrorType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic ErrorHandler handler()
Copyright © 2017. All Rights Reserved.