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
Constants |
|
|---|---|
const Int |
|
const Int |
|
const Int |
|
const Int |
REMOTE_EXCEPTION = 6 |
const Int |
|
const Int |
|
const Int |
UNKNOWN_ERROR = 0 |
Public constructors |
|---|
FailureResponse(exception: Throwable)Creates an instance of |
Public functions |
|
|---|---|
Boolean |
|
Int |
Returns the type of the originating exception. |
String |
Returns the stack trace of the originating exception. |
Int |
hashCode() |
Constants
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
getStackTrace
Added in 1.0.0
fun getStackTrace(): String
Returns the stack trace of the originating exception.