com.google.gwt.core.client
Class JavaScriptException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended bycom.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.


Field Summary
 
Fields inherited from class java.lang.Object
typeId, typeName
 
Constructor Summary
JavaScriptException(String name, String description)
           
 
Method Summary
 String getDescription()
           
 String getName()
           
 
Methods inherited from class java.lang.Throwable
getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, finalize, hashCode
 

Constructor Detail

JavaScriptException

public JavaScriptException(String name,
                           String description)
Parameters:
name - the original JavaScript type name of the exception
description - the original JavaScript message of the exception
Method Detail

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.