Success

class Success<S, C>(val value: S) : Result<S, C>

Successful operation result, containing resulting object.

Parameters

value

Result of successful operation.

Constructors

Link copied to clipboard
constructor(value: S)

Properties

Link copied to clipboard
val value: S

Functions

Link copied to clipboard

More detailed "debug" error code for troubleshooting the failure

Link copied to clipboard

Human-readable message containing additional debug information related to the possible cause of the failure.

Link copied to clipboard

More detailed descriptions of the error(s) causing the failure, if available. In many cases these are the actual errors returned from a server call. It is possible for a failure to happen without more detail that provided by the other fields, and this will be an empty list in such cases. (For example, error code NOT_AUTHORIZED has no additional details, the developer simply needs to call AuthorizationManager.authorize() before using the failing Mobile Payments SDK method).

Link copied to clipboard
fun errorCode(): C

Error code of an unsuccessful operation

Link copied to clipboard

Displayable message that summarizes the possible cause of the failure.

Link copied to clipboard

true if the operation resulted in a failure. For details see errorCode, errorMessage, debugCode and debugMessage.

Link copied to clipboard

true if the operation was successful. See value for the result.

Link copied to clipboard
fun value(): S

Result of a successful operation.