com.google.gwt.core.client
Class JavaScriptException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.google.gwt.core.client.JavaScriptException
- public class JavaScriptException
- extends RuntimeException
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.
JavaScriptException
public JavaScriptException(String name,
String description)
- Parameters:
name
- the original JavaScript type name of the exceptiondescription
- the original JavaScript message of the exception
getName
public String getName()
- Returns:
- the original JavaScript type name of the exception
getDescription
public String getDescription()
- Returns:
- the original JavaScript message of the exception
This javadoc distribution was not produced by Google. The official documentation is here.