public abstract class JVoiceXMLEvent
extends java.lang.Throwable
The platform throws events when the user does not respond, doesn't respond in
a way that the application understands, requests help, etc. The interpreter
throws events if it finds a semantic error in a VoiceXML document, or when it
encounters a <throw> element. Events are identified by
character strings.
Events are subdivided into plain events (things that happen normally), and error events (abnormal occurrences).
| Constructor and Description |
|---|
JVoiceXMLEvent()
Constructs a new event with the event type as its detail message.
|
JVoiceXMLEvent(java.lang.String message)
Constructs a new event with the specified detail message. the given
detail message is expanded to the form
<EVENT_TYPE>: <message>. |
JVoiceXMLEvent(java.lang.String message,
java.lang.Throwable cause)
Constructs a new event with the specified detail message and cause.
|
JVoiceXMLEvent(java.lang.Throwable cause)
Constructs a new event with the specified cause and a detail message of
(cause==null ? |
| Modifier and Type | Method and Description |
|---|---|
abstract java.lang.String |
getEventType()
Get the event type of this event.
|
java.lang.String |
getMessage()
Preceed the type to the original message.
|
boolean |
isType(java.lang.String otherType)
Checks if the type of this event matches the given type.
|
public JVoiceXMLEvent()
getEventType()public JVoiceXMLEvent(java.lang.String message)
<EVENT_TYPE>: <message>.
The cause is not initialized.message - The detail message.getEventType()public JVoiceXMLEvent(java.lang.Throwable cause)
(cause==null ? getEventType() : cause.toString()) (which
typically contains the class and detail message of cause).cause - The cause.getEventType()public JVoiceXMLEvent(java.lang.String message,
java.lang.Throwable cause)
message - The detail message.cause - The cause.public abstract java.lang.String getEventType()
public final boolean isType(java.lang.String otherType)
otherType - the type to check fortrue if the type is the samepublic final java.lang.String getMessage()
Preceed the type to the original message. The returned String
evaluates to
type: message.
getMessage in class java.lang.Throwable