|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.google.gwt.core.client.JavaScriptException
public final class JavaScriptException
Any JavaScript exceptions occurring within JSNI methods are wrapped as this class when caught in Java code. The wrapping does not occur until the exception passes out of JSNI into Java. Before that, the thrown object remains a native JavaScript exception object, and can be caught in JSNI as normal.
Constructor Summary | |
---|---|
|
JavaScriptException(java.lang.Object e)
|
protected |
JavaScriptException(java.lang.String message)
Used for server-side instantiation during JUnit runs. |
|
JavaScriptException(java.lang.String name,
java.lang.String description)
|
Method Summary | |
---|---|
java.lang.String |
getDescription()
Returns the original JavaScript message of the exception; may be null . |
JavaScriptObject |
getException()
Returns the original JavaScript the exception; may be null . |
java.lang.String |
getName()
Returns the original JavaScript type name of the exception; may be null . |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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 |
---|
public JavaScriptException(java.lang.Object e)
e
- the object caught in JavaScript that triggered the exceptionpublic JavaScriptException(java.lang.String name, java.lang.String description)
protected JavaScriptException(java.lang.String message)
com.google.gwt.junit.client.impl.ExceptionWrapper
objects.
message
- the detail messageMethod Detail |
---|
public java.lang.String getDescription()
null
.
public JavaScriptObject getException()
null
.
public java.lang.String getName()
null
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |