public enum ErrorOperation extends java.lang.Enum<ErrorOperation> implements Operation
error
keyword which has been removed in LSPS 3.1
and replaced by core::error
function. However, a running
LSPS 3.0 model has its own core module without error function.
Such a model would be invalid on 3.1 server, so there is a special handling
in Parser
that uses this operation.Enum Constant and Description |
---|
INSTANCE
Error throw operation.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
execute(Namespace namespace,
java.lang.String operation,
java.lang.String errorCode) |
static ErrorOperation |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ErrorOperation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ErrorOperation INSTANCE
public static ErrorOperation[] values()
for (ErrorOperation c : ErrorOperation.values()) System.out.println(c);
public static ErrorOperation valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.Object execute(Namespace namespace, java.lang.String operation, java.lang.String errorCode) throws ErrorException
ErrorException
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.