Class ExceptionsHelper.ErrorMessages
java.lang.Object
org.opensearch.ExceptionsHelper.ErrorMessages
- Enclosing class:
ExceptionsHelper
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final StringGeneric fallback error message for unknown exceptionsstatic final StringError message for invalid argument exceptionsstatic final StringError message for compression format issuesstatic final StringError message for content format issuesstatic final StringError message for JSON type coercion failuresstatic final StringError message for JSON parsing failuresstatic final StringError message for rate limiting / rejected execution -
Method Summary
-
Field Details
-
INVALID_ARGUMENT
-
JSON_PARSE_FAILED
-
TOO_MANY_REQUESTS
Error message for rate limiting / rejected execution- See Also:
-
JSON_COERCION_FAILED
Error message for JSON type coercion failures- See Also:
-
INVALID_CONTENT_FORMAT
-
INVALID_COMPRESSION_FORMAT
Error message for compression format issues- See Also:
-
INTERNAL_FAILURE
Generic fallback error message for unknown exceptions- See Also:
-