FailureResponse


@CarProtocol
class FailureResponse


Denotes a failure in the client to a host request.

This is used for the failure response for an androidx.car.app.IOnDoneCallback

Summary

Public constructors

Creates an instance of FailureResponse.

Public functions

Boolean
equals(obj: Any?)
Int

Returns the type of the originating exception.

String

Returns the stack trace of the originating exception.

Int

Constants

BUNDLER_EXCEPTION

Added in 1.0.0
const val BUNDLER_EXCEPTION = 1: Int

ILLEGAL_STATE_EXCEPTION

Added in 1.0.0
const val ILLEGAL_STATE_EXCEPTION = 2: Int

INVALID_PARAMETER_EXCEPTION

Added in 1.0.0
const val INVALID_PARAMETER_EXCEPTION = 3: Int

REMOTE_EXCEPTION

Added in 1.0.0
const val REMOTE_EXCEPTION = 6: Int

RUNTIME_EXCEPTION

Added in 1.0.0
const val RUNTIME_EXCEPTION = 5: Int

SECURITY_EXCEPTION

Added in 1.0.0
const val SECURITY_EXCEPTION = 4: Int

UNKNOWN_ERROR

Added in 1.0.0
const val UNKNOWN_ERROR = 0: Int

Public constructors

FailureResponse

Added in 1.0.0
FailureResponse(exception: Throwable)

Creates an instance of FailureResponse.

Parameters
exception: Throwable

the originating cause of the failure

Public functions

equals

fun equals(obj: Any?): Boolean

getErrorType

Added in 1.0.0
fun getErrorType(): Int

Returns the type of the originating exception.

getStackTrace

Added in 1.0.0
fun getStackTrace(): String

Returns the stack trace of the originating exception.

hashCode

fun hashCode(): Int