reject
Report an error without an exception using a custom code and error message.
Parameters
String
String
Report an exception with a custom code.
Parameters
String
Throwable
Report an exception with a custom code and error message.
Parameters
String
String
Throwable
Report an exception, with default error code. Useful in catch-all scenarios where it's unclear why the error occurred.
Parameters
Throwable
Report an exception, with default error code, with userInfo. Useful in catch-all scenarios where it's unclear why the error occurred.
Parameters
Throwable
WritableMap
Reject with a code and userInfo WritableMap.
Parameters
String
WritableMap
Report an exception with a custom code and userInfo.
Parameters
String
Throwable
WritableMap
Report an error with a custom code, error message and userInfo, an error not caused by an exception.
Parameters
String
String
WritableMap
Report an exception with a custom code, error message and userInfo.
Parameters
String
String
Throwable
WritableMap
Deprecated
Prefer passing a module-specific error code to JS. Using this method will pass the error code EUNSPECIFIED
Replace with
reject(code, message)
Report an error which wasn't caused by an exception.