public static class RestUtils.ErrorResponse extends Object
RestUtils.RestCallable.call()
throws an exception.
It will be encoded into a Json string to be returned as an error response for the REST call.Constructor and Description |
---|
ErrorResponse(io.grpc.Status.Code statusCode,
String message)
Creates a new
RestUtils.ErrorResponse . |
Modifier and Type | Method and Description |
---|---|
String |
getMessage()
Gets message.
|
io.grpc.Status.Code |
getStatusCode()
Gets status.
|
public ErrorResponse(io.grpc.Status.Code statusCode, String message)
RestUtils.ErrorResponse
.statusCode
- the RPC call result's Status.Code
message
- the error messagepublic io.grpc.Status.Code getStatusCode()
public String getMessage()
Copyright © 2023. All Rights Reserved.