org.speakright.core
Enum CoreErrors
java.lang.Object
java.lang.Enum<CoreErrors>
org.speakright.core.CoreErrors
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<CoreErrors>
public enum CoreErrors
- extends java.lang.Enum<CoreErrors>
All errors in the org.speakright.core package should have an enum value here.
- Author:
- Ian Rae
|
Method Summary |
static void |
logError(SRError err,
CoreErrors code,
java.lang.String description)
|
static CoreErrors |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static CoreErrors[] |
values()
Returns an array containing the constants of this enum type, in
the order they're declared. |
| Methods inherited from class java.lang.Enum |
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
UnknownModelMethod
public static final CoreErrors UnknownModelMethod
UnknownFieldMethod
public static final CoreErrors UnknownFieldMethod
ModelMethodWrongParameters
public static final CoreErrors ModelMethodWrongParameters
ModelMethodFailed
public static final CoreErrors ModelMethodFailed
BadInterpreterState
public static final CoreErrors BadInterpreterState
GetFirstError
public static final CoreErrors GetFirstError
ExecuteCaughtOwnException
public static final CoreErrors ExecuteCaughtOwnException
NoContentGenerated
public static final CoreErrors NoContentGenerated
RunawayInterpreter
public static final CoreErrors RunawayInterpreter
EventNotCaught
public static final CoreErrors EventNotCaught
SerializationFailed
public static final CoreErrors SerializationFailed
FlowFieldFailed
public static final CoreErrors FlowFieldFailed
values
public static final CoreErrors[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(CoreErrors c : CoreErrors.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static CoreErrors valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
logError
public static void logError(SRError err,
CoreErrors code,
java.lang.String description)