|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
org.jvoicexml.event.JVoiceXMLEvent
org.jvoicexml.event.ErrorEvent
org.jvoicexml.event.error.BadFetchError
public class BadFetchError
The interpreter context throws this event when a fetch of a document has failed and the interpreter context has reached a place in the document interpretation where the fetch result is required. Fetch failures result from unsupported scheme references, malformed URIs, client aborts, communication errors, timeouts, security violations, unsupported resource types, resource type mismatches, document parse errors, and a variety of errors represented by scheme-specific error codes.
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.
| Field Summary | |
|---|---|
static String |
EVENT_TYPE
The detail message. |
| Constructor Summary | |
|---|---|
BadFetchError()
Constructs a new event with the event type as its detail message. |
|
BadFetchError(String message)
Constructs a new event with the specified detail message. the given detail message is expanded to the form <EVENT_TYPE>>: <message>. |
|
BadFetchError(String message,
Throwable cause)
Constructs a new event with the specified detail message and cause. |
|
BadFetchError(Throwable cause)
Constructs a new event with the specified cause and a detail message of (cause==null ? |
|
| Method Summary | |
|---|---|
protected void |
appendSpecificationDetails(StringBuilder str)
Appends detail information to the type information. |
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 |
| Field Detail |
|---|
public static final String EVENT_TYPE
| Constructor Detail |
|---|
public BadFetchError()
getEventType()public BadFetchError(String message)
<EVENT_TYPE>>: <message>.
The cause is not initialized.
message - The detail message.getEventType()public BadFetchError(Throwable cause)
(cause==null ? getEventType() : cause.toString()) (which
typically contains the class and detail message of cause).
cause - The cause.getEventType()
public BadFetchError(String message,
Throwable cause)
message - The detail message.cause - The cause.| Method Detail |
|---|
protected void appendSpecificationDetails(StringBuilder str)
str - type prefix.public final String getEventType()
getEventType in class JVoiceXMLEvent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||