public enum ErrorOperation extends 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 |
---|---|
Object |
execute(Namespace namespace,
String operation,
String errorCode) |
static ErrorOperation |
valueOf(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(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 Object execute(Namespace namespace, String operation, String errorCode) throws ErrorException
ErrorException
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.