Package io.vertx.grpc.common
Class GrpcErrorException
- java.lang.Object
- 
- java.lang.Throwable
- 
- java.lang.Exception
- 
- java.lang.RuntimeException
- 
- io.vertx.core.VertxException
- 
- io.vertx.grpc.common.GrpcErrorException
 
 
 
 
 
- 
- All Implemented Interfaces:
- Serializable
 
 public final class GrpcErrorException extends VertxException Thrown when a failure happens before the response, and it could be interpreted to a gRPC failure, e.g. in practice it means an HTTP/2 stream reset mapped to a gRPC code according to the spec.- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description GrpcErrorException(GrpcError error, GrpcStatus status)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GrpcErrorExceptioncreate(StreamResetException sre)GrpcErrorerror()GrpcStatusstatus()- 
Methods inherited from class io.vertx.core.VertxExceptionnoStackTrace, noStackTrace, noStackTrace
 - 
Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
- 
 
- 
- 
- 
Constructor Detail- 
GrpcErrorExceptionpublic GrpcErrorException(GrpcError error, GrpcStatus status) 
 
- 
 - 
Method Detail- 
createpublic static GrpcErrorException create(StreamResetException sre) 
 - 
errorpublic GrpcError error() 
 - 
statuspublic GrpcStatus status() 
 
- 
 
-