Constructor and Description |
---|
PromiseImpl(Callback resolve,
Callback reject) |
Modifier and Type | Method and Description |
---|---|
void |
reject(java.lang.String message)
Deprecated.
|
void |
reject(java.lang.String code,
java.lang.String message)
Report an error without an exception using a custom code and error message.
|
void |
reject(java.lang.String code,
java.lang.String message,
java.lang.Throwable throwable)
Report an exception with a custom code and error message.
|
void |
reject(java.lang.String code,
java.lang.String message,
java.lang.Throwable throwable,
WritableMap userInfo)
Report an exception with a custom code, error message and userInfo.
|
void |
reject(java.lang.String code,
java.lang.String message,
WritableMap userInfo)
Report an error with a custom code, error message and userInfo,
an error not caused by an exception.
|
void |
reject(java.lang.String code,
java.lang.Throwable throwable)
Report an exception with a custom code.
|
void |
reject(java.lang.String code,
java.lang.Throwable throwable,
WritableMap userInfo)
Report an exception with a custom code and userInfo.
|
void |
reject(java.lang.String code,
WritableMap userInfo)
Reject with a code and userInfo WritableMap.
|
void |
reject(java.lang.Throwable throwable)
Report an exception, with default error code.
|
void |
reject(java.lang.Throwable throwable,
WritableMap userInfo)
Report an exception, with default error code, with userInfo.
|
void |
resolve(java.lang.Object value)
Successfully resolve the Promise with an optional value.
|
public void resolve(java.lang.Object value)
public void reject(java.lang.String code, java.lang.String message)
public void reject(java.lang.String code, java.lang.Throwable throwable)
public void reject(java.lang.String code, java.lang.String message, java.lang.Throwable throwable)
public void reject(java.lang.Throwable throwable)
public void reject(java.lang.Throwable throwable, WritableMap userInfo)
public void reject(java.lang.String code, WritableMap userInfo)
public void reject(java.lang.String code, java.lang.Throwable throwable, WritableMap userInfo)
public void reject(java.lang.String code, java.lang.String message, WritableMap userInfo)
public void reject(java.lang.String code, java.lang.String message, java.lang.Throwable throwable, WritableMap userInfo)