Class GrpcErrorHelper

java.lang.Object
io.deephaven.server.grpc.GrpcErrorHelper

public class GrpcErrorHelper extends Object
  • Constructor Details

    • GrpcErrorHelper

      public GrpcErrorHelper()
  • Method Details

    • checkHasField

      public static void checkHasField(com.google.protobuf.Message message, int fieldNumber) throws io.grpc.StatusRuntimeException
      Throws:
      io.grpc.StatusRuntimeException
    • checkDoesNotHaveField

      public static void checkDoesNotHaveField(com.google.protobuf.Message message, int fieldNumber) throws io.grpc.StatusRuntimeException
      Throws:
      io.grpc.StatusRuntimeException
    • checkRepeatedFieldNonEmpty

      public static void checkRepeatedFieldNonEmpty(com.google.protobuf.Message message, int fieldNumber) throws io.grpc.StatusRuntimeException
      Throws:
      io.grpc.StatusRuntimeException
    • checkHasOneOf

      public static void checkHasOneOf(com.google.protobuf.Message message, String oneOfName) throws io.grpc.StatusRuntimeException
      Throws:
      io.grpc.StatusRuntimeException
    • checkHasNoUnknownFields

      public static void checkHasNoUnknownFields(com.google.protobuf.Message message)
    • checkHasNoUnknownFieldsRecursive

      public static void checkHasNoUnknownFieldsRecursive(com.google.protobuf.Message message)
    • extractField

      public static com.google.protobuf.Descriptors.FieldDescriptor extractField(com.google.protobuf.Descriptors.Descriptor desc, int fieldNumber, Class<? extends com.google.protobuf.Message> clazz) throws NoSuchMethodException, InvocationTargetException, IllegalAccessException
      Throws:
      NoSuchMethodException
      InvocationTargetException
      IllegalAccessException