Class ExceptionsHelper.ErrorMessages

java.lang.Object
org.opensearch.ExceptionsHelper.ErrorMessages
Enclosing class:
ExceptionsHelper

public static final class ExceptionsHelper.ErrorMessages extends Object
Shared error message constants for consistent error handling across HTTP and gRPC protocols. These constants ensure that both REST API and gRPC API return identical error messages for the same types of exceptions.
  • Field Details

    • INVALID_ARGUMENT

      public static final String INVALID_ARGUMENT
      Error message for invalid argument exceptions
      See Also:
    • JSON_PARSE_FAILED

      public static final String JSON_PARSE_FAILED
      Error message for JSON parsing failures
      See Also:
    • TOO_MANY_REQUESTS

      public static final String TOO_MANY_REQUESTS
      Error message for rate limiting / rejected execution
      See Also:
    • JSON_COERCION_FAILED

      public static final String JSON_COERCION_FAILED
      Error message for JSON type coercion failures
      See Also:
    • INVALID_CONTENT_FORMAT

      public static final String INVALID_CONTENT_FORMAT
      Error message for content format issues
      See Also:
    • INVALID_COMPRESSION_FORMAT

      public static final String INVALID_COMPRESSION_FORMAT
      Error message for compression format issues
      See Also:
    • INTERNAL_FAILURE

      public static final String INTERNAL_FAILURE
      Generic fallback error message for unknown exceptions
      See Also: