org.jvoicexml.event
Class GenericVoiceXmlEvent

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

public final class GenericVoiceXmlEvent
extends JVoiceXMLEvent

Generic VoiceXmlEvent that is thrown from a <throw> tag.

Version:
$Revision: 149 $

Copyright © 2005 JVoiceXML group - http://jvoicexml.sourceforge.net/

Author:
Dirk Schnelle
See Also:
Serialized Form

Constructor Summary
GenericVoiceXmlEvent(String type)
          Constructs a new event with the given event type as its detail message.
GenericVoiceXmlEvent(String type, String message)
          Constructs a new event with the specified detail message. the given detail message is expanded to the form <EVENT_TYPE>>: <message>.
 
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
 

Constructor Detail

GenericVoiceXmlEvent

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

Parameters:
type - The event type for this event.

GenericVoiceXmlEvent

public GenericVoiceXmlEvent(String type,
                            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:
type - The event type for this event.
message - The detail message.
Method Detail

getEventType

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

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


Copyright © 2005-2007 JVoiceXML group.