AuthenticationResult.Error


public final class AuthenticationResult.Error implements AuthenticationResult


A result when an error has been encountered and authentication has stopped.

Summary

Public constructors

Error(int errorCode, @NonNull CharSequence errString)

Public methods

@NonNull AuthenticationResult.Error

Returns a Error only if it's a Error, throws otherwise.

final @NonNull CharSequence

A human-readable string that describes the error.

final int

An integer ID associated with the error.

Inherited methods

boolean

Whether this AuthenticationResult is an Error.

boolean

Whether this AuthenticationResult is a Success.

AuthenticationResult.Success

Returns a Success only if it's a Success, throws otherwise.

Public constructors

Error

Added in 1.4.0-alpha04
public Error(int errorCode, @NonNull CharSequence errString)

Public methods

error

public @NonNull AuthenticationResult.Error error()

Returns a Error only if it's a Error, throws otherwise.

getErrString

Added in 1.4.0-alpha04
public final @NonNull CharSequence getErrString()

A human-readable string that describes the error.

getErrorCode

Added in 1.4.0-alpha04
public final int getErrorCode()

An integer ID associated with the error.