org.jvoicexml.event
Class ErrorEvent

java.lang.Object
  extended by java.lang.Throwable
      extended by org.jvoicexml.event.JVoiceXMLEvent
          extended by org.jvoicexml.event.ErrorEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BadFetchError, ExceptionWrapper, NoauthorizationError, NoresourceError, RemoteException, SemanticError, UnsupportedElementError

public abstract class ErrorEvent
extends JVoiceXMLEvent

Base class for all events for abnormal occurences.

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

Constructor Summary
ErrorEvent()
          Constructs a new event with the event type as its detail message.
ErrorEvent(String message)
          Constructs a new event with the specified detail message. the given detail message is expanded to the form <EVENT_TYPE>>: <message>.
ErrorEvent(String message, Throwable cause)
          Constructs a new event with the specified detail message and cause.
ErrorEvent(Throwable cause)
          Constructs a new event with the specified cause and a detail message of (cause==null ?
 
Method Summary
 
Methods inherited from class org.jvoicexml.event.JVoiceXMLEvent
getEventType, 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

ErrorEvent

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

See Also:
JVoiceXMLEvent.getEventType()

ErrorEvent

public ErrorEvent(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:
JVoiceXMLEvent.getEventType()

ErrorEvent

public ErrorEvent(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:
JVoiceXMLEvent.getEventType()

ErrorEvent

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

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


Copyright © 2005-2010JVoiceXML group.