Class GrpcCollectorException

java.lang.Object
java.lang.Throwable
java.lang.Exception
io.mishmash.opentelemetry.server.collector.GrpcCollectorException
All Implemented Interfaces:
Serializable

public class GrpcCollectorException extends Exception
An Exception that also contains the GrpcStatus that should be returned to the client.
See Also:
  • Constructor Details

    • GrpcCollectorException

      public GrpcCollectorException(io.vertx.grpc.common.GrpcStatus grpcStatus)
      Instantiate a new GrpcCollectorException.
      Parameters:
      grpcStatus - the gRPC status to be sent to the client
    • GrpcCollectorException

      public GrpcCollectorException(io.vertx.grpc.common.GrpcStatus grpcStatus, String message)
      Instantiate a new GrpcCollectorException.
      Parameters:
      grpcStatus - the gRPC status to be sent to the client
      message - a descriptive message of the error encountered
    • GrpcCollectorException

      public GrpcCollectorException(io.vertx.grpc.common.GrpcStatus grpcStatus, Throwable cause)
      Instantiate a new GrpcCollectorException.
      Parameters:
      grpcStatus - the gRPC status to be sent to the client
      cause - the exception that caused this
    • GrpcCollectorException

      public GrpcCollectorException(io.vertx.grpc.common.GrpcStatus grpcStatus, String message, Throwable cause)
      Instantiate a new GrpcCollectorException.
      Parameters:
      grpcStatus - the gRPC status to be sent to the client
      message - a descriptive message of the error encountered
      cause - 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