org.jvoicexml.event.error
Class SemanticError

java.lang.Object
  extended by java.lang.Throwable
      extended by org.jvoicexml.event.JVoiceXMLEvent
          extended by org.jvoicexml.event.ErrorEvent
              extended by org.jvoicexml.event.error.SemanticError
All Implemented Interfaces:
Serializable

public class SemanticError
extends ErrorEvent

A run-time error was found in the VoiceXML document, e.g. substring bounds error, or an undefined variable was referenced.

Version:
$Revision: 2476 $
Author:
Dirk Schnelle-Walka
See Also:
Serialized Form

Field Summary
static String EVENT_TYPE
          The detail message.
 
Constructor Summary
SemanticError()
          Constructs a new event with the event type as its detail message.
SemanticError(String message)
          Constructs a new event with the specified detail message. the given detail message is expanded to the form <EVENT_TYPE>>: <message>.
SemanticError(String message, Throwable cause)
          Constructs a new event with the specified detail message and cause.
SemanticError(Throwable cause)
          Constructs a new event with the specified cause and a detail message of (cause==null ?
 
Method Summary
 String getEventType()
          Get the event type of this event.
 
Methods inherited from class org.jvoicexml.event.JVoiceXMLEvent
getMessage
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EVENT_TYPE

public static final String EVENT_TYPE
The detail message.

See Also:
Constant Field Values
Constructor Detail

SemanticError

public SemanticError()
Constructs a new event with the event type as its detail message. The cause is not initialized.

See Also:
getEventType()

SemanticError

public SemanticError(String message)
Constructs a new event with the specified detail message. the given detail message is expanded to the form <EVENT_TYPE>>: <message>. The cause is not initialized.

Parameters:
message - The detail message.
See Also:
getEventType()

SemanticError

public SemanticError(Throwable cause)
Constructs a new event with the specified cause and a detail message of (cause==null ? getEventType() : cause.toString()) (which typically contains the class and detail message of cause).

Parameters:
cause - The cause.
See Also:
getEventType()

SemanticError

public SemanticError(String message,
                     Throwable cause)
Constructs a new event with the specified detail message and cause.

Parameters:
message - The detail message.
cause - The cause.
Method Detail

getEventType

public final String getEventType()
Get the event type of this event.

Specified by:
getEventType in class JVoiceXMLEvent
Returns:
Event type.


Copyright © 2005-2010JVoiceXML group.