Class RpcErrorException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.grpc.StatusRuntimeException
-
- org.hertsstack.core.exception.rpc.RpcErrorException
-
- All Implemented Interfaces:
java.io.Serializable
public class RpcErrorException extends io.grpc.StatusRuntimeExceptionHerts prc error- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRpcErrorException.StatusCodeStatus Code enum See: StatusCode
-
Constructor Summary
Constructors Constructor Description RpcErrorException(io.grpc.StatusRuntimeException ex)RpcErrorException(RpcErrorException.StatusCode statusCode)RpcErrorException(RpcErrorException.StatusCode statusCode, java.lang.String msg)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RpcErrorException.StatusCodeconvertToHertsCode(io.grpc.Status status)Convert to herts StatusCode.io.grpc.StatusRuntimeExceptioncreateStatusException()io.grpc.StatusgetGrpcStatus()java.lang.StringgetMessage()RpcErrorException.StatusCodegetStatusCode()-
Methods inherited from class io.grpc.StatusRuntimeException
fillInStackTrace, getStatus, getTrailers
-
-
-
-
Constructor Detail
-
RpcErrorException
public RpcErrorException(io.grpc.StatusRuntimeException ex)
-
RpcErrorException
public RpcErrorException(RpcErrorException.StatusCode statusCode)
-
RpcErrorException
public RpcErrorException(RpcErrorException.StatusCode statusCode, java.lang.String msg)
-
-
Method Detail
-
convertToHertsCode
public static RpcErrorException.StatusCode convertToHertsCode(io.grpc.Status status)
Convert to herts StatusCode.- Parameters:
status- Status- Returns:
- io.grpc.Status
-
createStatusException
public io.grpc.StatusRuntimeException createStatusException()
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessagein classjava.lang.Throwable
-
getStatusCode
public RpcErrorException.StatusCode getStatusCode()
-
getGrpcStatus
public io.grpc.Status getGrpcStatus()
-
-