public class RpcServerException extends RpcException
Constructor and Description |
---|
RpcServerException(String message)
Constructs exception with the specified detail message.
|
RpcServerException(String message,
Throwable cause)
Constructs exception with the specified detail message and cause.
|
Modifier and Type | Method and Description |
---|---|
RpcHeaderProtos.RpcResponseHeaderProto.RpcErrorCodeProto |
getRpcErrorCodeProto()
get the detailed rpc status corresponding to this exception
|
RpcHeaderProtos.RpcResponseHeaderProto.RpcStatusProto |
getRpcStatusProto()
get the rpc status corresponding to this exception
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public RpcServerException(String message)
message
- detailed message.public RpcServerException(String message, Throwable cause)
message
- message.cause
- the cause (can be retried by the Throwable.getCause()
method).
(A null value is permitted, and indicates that the cause
is nonexistent or unknown.)public RpcHeaderProtos.RpcResponseHeaderProto.RpcStatusProto getRpcStatusProto()
public RpcHeaderProtos.RpcResponseHeaderProto.RpcErrorCodeProto getRpcErrorCodeProto()
Copyright © 2013 Apache Software Foundation. All rights reserved.