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.StatusRuntimeException
Herts prc error- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RpcErrorException.StatusCode
Status 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.StatusCode
convertToHertsCode(io.grpc.Status status)
Convert to herts StatusCode.io.grpc.StatusRuntimeException
createStatusException()
io.grpc.Status
getGrpcStatus()
java.lang.String
getMessage()
RpcErrorException.StatusCode
getStatusCode()
-
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:
getMessage
in classjava.lang.Throwable
-
getStatusCode
public RpcErrorException.StatusCode getStatusCode()
-
getGrpcStatus
public io.grpc.Status getGrpcStatus()
-
-