Class GrpcCollectorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
io.mishmash.opentelemetry.server.collector.GrpcCollectorException
- All Implemented Interfaces:
Serializable
An
Exception that also contains the
GrpcStatus that should be returned
to the client.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGrpcCollectorException(io.vertx.grpc.common.GrpcStatus grpcStatus) Instantiate a newGrpcCollectorException.GrpcCollectorException(io.vertx.grpc.common.GrpcStatus grpcStatus, String message) Instantiate a newGrpcCollectorException.GrpcCollectorException(io.vertx.grpc.common.GrpcStatus grpcStatus, String message, Throwable cause) Instantiate a newGrpcCollectorException.GrpcCollectorException(io.vertx.grpc.common.GrpcStatus grpcStatus, Throwable cause) Instantiate a newGrpcCollectorException. -
Method Summary
Modifier and TypeMethodDescriptionio.vertx.grpc.common.GrpcStatusGet the gRPC status that should be returned to the client.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
GrpcCollectorException
public GrpcCollectorException(io.vertx.grpc.common.GrpcStatus grpcStatus) Instantiate a newGrpcCollectorException.- Parameters:
grpcStatus- the gRPC status to be sent to the client
-
GrpcCollectorException
Instantiate a newGrpcCollectorException.- Parameters:
grpcStatus- the gRPC status to be sent to the clientmessage- a descriptive message of the error encountered
-
GrpcCollectorException
Instantiate a newGrpcCollectorException.- Parameters:
grpcStatus- the gRPC status to be sent to the clientcause- the exception that caused this
-
GrpcCollectorException
public GrpcCollectorException(io.vertx.grpc.common.GrpcStatus grpcStatus, String message, Throwable cause) Instantiate a newGrpcCollectorException.- Parameters:
grpcStatus- the gRPC status to be sent to the clientmessage- a descriptive message of the error encounteredcause- the exception that caused this
-
-
Method Details
-
getGrpcStatus
public io.vertx.grpc.common.GrpcStatus getGrpcStatus()Get the gRPC status that should be returned to the client.- Returns:
- the gRPC status
-