org.speakright.core.render
Enum RenderErrors

java.lang.Object
  extended by java.lang.Enum<RenderErrors>
      extended by org.speakright.core.render.RenderErrors
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<RenderErrors>

public enum RenderErrors
extends java.lang.Enum<RenderErrors>

All errors in the render package should have an enum value here.

Author:
Ian Rae

Enum Constant Summary
AudioMatchXMLLookupFailed
           
FlowHasNoModel
           
InvalidPromptString
           
PromptXMLLookupFailed
           
UnknownFieldVar
           
UnknownModelVar
           
UnknownPromptId
           
 
Method Summary
static void logError(SRError err, RenderErrors code, java.lang.String description)
           
static RenderErrors valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static RenderErrors[] 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
 

Enum Constant Detail

UnknownPromptId

public static final RenderErrors UnknownPromptId

UnknownModelVar

public static final RenderErrors UnknownModelVar

UnknownFieldVar

public static final RenderErrors UnknownFieldVar

FlowHasNoModel

public static final RenderErrors FlowHasNoModel

PromptXMLLookupFailed

public static final RenderErrors PromptXMLLookupFailed

AudioMatchXMLLookupFailed

public static final RenderErrors AudioMatchXMLLookupFailed

InvalidPromptString

public static final RenderErrors InvalidPromptString
Method Detail

values

public static final RenderErrors[] 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(RenderErrors c : RenderErrors.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static RenderErrors 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,
                            RenderErrors code,
                            java.lang.String description)