org.jvoicexml.event.error
Class UnsupportedElementError

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.UnsupportedElementError
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
UnsupportedBuiltinError, UnsupportedFormatError, UnsupportedLanguageError, UnsupportedObjectnameError

public class UnsupportedElementError
extends ErrorEvent

The platform does not support the given element, where element is a VoiceXML element defined in this specification. For instance, if a platform does not implement <transfer>, it must throw error.unsupported.transfer. This allows an author to use event handling to adapt to different platform capabilities.

Version:
$Revision: 201 $

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

Author:
Dirk Schnelle
See Also:
Serialized Form

Constructor Summary
UnsupportedElementError(String unsupported)
          Constructs a new event with the event type as its detail message.
UnsupportedElementError(String unsupported, String message)
          Constructs a new event with the specified detail message. the given detail message is expanded to the form <EVENT_TYPE>>: <message>.
UnsupportedElementError(String unsupported, String message, Throwable cause)
          Constructs a new event with the specified detail message and cause.
UnsupportedElementError(String unsupported, Throwable cause)
          Constructs a new event with the specified cause and a detail message of (cause==null ?
 
Method Summary
 String getElement()
          Retrieve the name of the unsupported element.
 String getEventType()
          Constructs an event type with the event type as specification.
 
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

UnsupportedElementError

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

The unsupported element is used to construct the event type.

Parameters:
unsupported - The name of the unsupported element.
See Also:
getEventType()

UnsupportedElementError

public UnsupportedElementError(String unsupported,
                               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.

The unsupported element is used to construct the event type.

Parameters:
unsupported - The name of the unsupported element.
message - The detail message.
See Also:
getEventType()

UnsupportedElementError

public UnsupportedElementError(String unsupported,
                               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).

The unsupported element is used to construct the event type.

Parameters:
unsupported - The name of the unsupported element.
cause - The cause.
See Also:
getEventType()

UnsupportedElementError

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

The unsupported element is used to construct the event type.

Parameters:
unsupported - The name of the unsupported element.
message - The detail message.
cause - The cause.
Method Detail

getElement

public final String getElement()
Retrieve the name of the unsupported element.

Returns:
name of the unsupported element.

getEventType

public final String getEventType()
Constructs an event type with the event type as specification. The event type has the following form

<EVENT_TYPE>.<element>

Specified by:
getEventType in class JVoiceXMLEvent
Returns:
Event type.
See Also:
EVENT_TYPE, {@inheritDoc}


Copyright © 2005-2007 JVoiceXML group.