public class BadFetchError extends ErrorEvent
If the interpreter context has speculatively prefetched a document and that
document turns out not to be needed, error.badfetch is not thrown. Likewise
if the fetch of an <audio> document fails and if there
is a nested alternate <audio> document whose fetch then
succeeds, or if there is nested alternate text, no
error.badfetch occurs.
When an interpreter context is transitioning to a new document, the
interpreter context throws error.badfetch on an error until
the interpreter is capable of executing the new document, but again only at
the point in time where the new document is actually needed, not before.
Whether or not variable initialization is considered part of executing the
new document is platform-dependent.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
EVENT_TYPE
The detail message.
|
| Constructor and Description |
|---|
BadFetchError()
Constructs a new event with the event type as its detail message.
|
BadFetchError(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>. |
BadFetchError(java.lang.String message,
java.lang.Throwable cause)
Constructs a new event with the specified detail message and cause.
|
BadFetchError(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 |
|---|---|
protected void |
appendSpecificationDetails(java.lang.StringBuilder str)
Appends detail information to the type information.
|
java.lang.String |
getEventType()
Get the event type of this event.
|
getMessage, isTypepublic static final java.lang.String EVENT_TYPE
public BadFetchError()
getEventType()public BadFetchError(java.lang.String message)
<EVENT_TYPE>: <message>.
The cause is not initialized.message - The detail message.getEventType()public BadFetchError(java.lang.Throwable cause)
(cause==null ? getEventType() : cause.toString()) (which
typically contains the class and detail message of cause).cause - The cause.getEventType()public BadFetchError(java.lang.String message,
java.lang.Throwable cause)
message - The detail message.cause - The cause.protected void appendSpecificationDetails(java.lang.StringBuilder str)
str - type prefix.public final java.lang.String getEventType()
getEventType in class JVoiceXMLEvent