-
- All Implemented Interfaces:
-
com.facebook.react.common.HasJavascriptExceptionMetadata
,java.io.Serializable
public class JavascriptException extends RuntimeException implements HasJavascriptExceptionMetadata
A JS exception that was propagated to native. In debug mode, these exceptions are normally shown to developers in a redbox.
-
-
Field Summary
Fields Modifier and Type Field Description private String
extraDataAsJson
-
Constructor Summary
Constructors Constructor Description JavascriptException(String jsStackTrace)
-
Method Summary
Modifier and Type Method Description String
getExtraDataAsJson()
JavascriptException
setExtraDataAsJson(@Nullable() String extraDataAsJson)
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
JavascriptException
JavascriptException(String jsStackTrace)
-
-
Method Detail
-
getExtraDataAsJson
@Nullable() String getExtraDataAsJson()
-
setExtraDataAsJson
JavascriptException setExtraDataAsJson(@Nullable() String extraDataAsJson)
-
-
-
-