|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<XMCDAErrorsManager.ErrorManagement>
org.decisiondeck.jmcda.persist.xmcda2.utils.XMCDAErrorsManager.ErrorManagement
public static enum XMCDAErrorsManager.ErrorManagement
Indicates what to do when unexpected data is read. When the COLLECT strategy is used, the user should
make sure the errors will go somewhere. If the user does not care about errors and simply want to discard them,
the LOG strategy should be chosen as it does not waste memory and it does not completely hide errors.
| Enum Constant Summary | |
|---|---|
COLLECT
Do not stop reading at unexpected data: collect errors for further retrieval. |
|
LOG
Do not stop reading at unexpected data, log the error and go on. |
|
THROW
Stop reading at first error and throw an InvalidInputException exception. |
|
| Method Summary | |
|---|---|
static XMCDAErrorsManager.ErrorManagement |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static XMCDAErrorsManager.ErrorManagement[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final XMCDAErrorsManager.ErrorManagement THROW
InvalidInputException exception.
public static final XMCDAErrorsManager.ErrorManagement COLLECT
public static final XMCDAErrorsManager.ErrorManagement LOG
| Method Detail |
|---|
public static XMCDAErrorsManager.ErrorManagement[] values()
for (XMCDAErrorsManager.ErrorManagement c : XMCDAErrorsManager.ErrorManagement.values()) System.out.println(c);
public static XMCDAErrorsManager.ErrorManagement valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||