public class RequestFailure extends Object
Constructor and Description |
---|
RequestFailure(long requestId,
Throwable cause)
Creates a failure response to a
MessageBody . |
Modifier and Type | Method and Description |
---|---|
Throwable |
getCause()
Returns the failure cause.
|
long |
getRequestId()
Returns the request ID responding to.
|
String |
toString() |
public RequestFailure(long requestId, Throwable cause)
MessageBody
.requestId
- ID for the request responding tocause
- Failure cause (not allowed to be a user type)Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.