Package org.apache.gravitino.client
Class ErrorHandlers
java.lang.Object
org.apache.gravitino.client.ErrorHandlers
Utility class providing error handling for REST requests and specific to Metalake errors.
It also includes utility methods to format error messages and convert stack traces to strings.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Error handler specific to OAuth2 requests. -
Method Summary
Modifier and TypeMethodDescriptionstatic Consumer<ErrorResponse>
Creates an error handler specific to Catalog operations.static Consumer<ErrorResponse>
Creates an error handler specific to credential operations.static Consumer<ErrorResponse>
Creates an error handler specific to Fileset operations.static Consumer<ErrorResponse>
Creates an error handler specific to Group operations.static Consumer<ErrorResponse>
Creates an error handler specific to job and job template operations.static Consumer<ErrorResponse>
Creates an error handler specific to Metalake operations.static Consumer<ErrorResponse>
Creates an error handler specific to Model operations.static Consumer<ErrorResponse>
Creates an error handler specific to OAuth2 requests.static Consumer<ErrorResponse>
Creates an error handler specific to Owner operations.static Consumer<ErrorResponse>
Creates an error handler specific to Partition operations.static Consumer<ErrorResponse>
Creates an error handler specific to permission operations.static Consumer<ErrorResponse>
Creates an error handler specific to policy operations.static Consumer<ErrorResponse>
Creates a generic error handler for REST requests.static Consumer<ErrorResponse>
Creates an error handler specific to Role operations.static Consumer<ErrorResponse>
Creates an error handler specific to Schema operations.static Consumer<ErrorResponse>
Creates an error handler specific to Statistics operations.static Consumer<ErrorResponse>
Creates an error handler specific to Table operations.static Consumer<ErrorResponse>
Creates an error handler specific to Tag operations.static Consumer<ErrorResponse>
Creates an error handler specific to Topic operations.static Consumer<ErrorResponse>
Creates an error handler specific to User operations.
-
Method Details
-
metalakeErrorHandler
Creates an error handler specific to Metalake operations.- Returns:
- A Consumer representing the Metalake error handler.
-
catalogErrorHandler
Creates an error handler specific to Catalog operations.- Returns:
- A Consumer representing the Catalog error handler.
-
schemaErrorHandler
Creates an error handler specific to Schema operations.- Returns:
- A Consumer representing the Schema error handler.
-
tableErrorHandler
Creates an error handler specific to Table operations.- Returns:
- A Consumer representing the Table error handler.
-
partitionErrorHandler
Creates an error handler specific to Partition operations.- Returns:
- A Consumer representing the Partition error handler.
-
restErrorHandler
Creates a generic error handler for REST requests.- Returns:
- A Consumer representing the generic REST error handler.
-
oauthErrorHandler
Creates an error handler specific to OAuth2 requests.- Returns:
- A Consumer representing the OAuth2 error handler.
-
filesetErrorHandler
Creates an error handler specific to Fileset operations.- Returns:
- A Consumer representing the Fileset error handler.
-
topicErrorHandler
Creates an error handler specific to Topic operations.- Returns:
- A Consumer representing the Topic error handler.
-
userErrorHandler
Creates an error handler specific to User operations.- Returns:
- A Consumer representing the User error handler.
-
groupErrorHandler
Creates an error handler specific to Group operations.- Returns:
- A Consumer representing the Group error handler.
-
roleErrorHandler
Creates an error handler specific to Role operations.- Returns:
- A Consumer representing the Role error handler.
-
permissionOperationErrorHandler
Creates an error handler specific to permission operations.- Returns:
- A Consumer representing the permission error handler.
-
tagErrorHandler
Creates an error handler specific to Tag operations.- Returns:
- A Consumer representing the Tag error handler.
-
policyErrorHandler
Creates an error handler specific to policy operations.- Returns:
- A Consumer representing the policy error handler.
-
credentialErrorHandler
Creates an error handler specific to credential operations.- Returns:
- A Consumer representing the credential error handler.
-
ownerErrorHandler
Creates an error handler specific to Owner operations.- Returns:
- A Consumer representing the Owner error handler.
-
modelErrorHandler
Creates an error handler specific to Model operations.- Returns:
- A Consumer representing the Model error handler.
-
jobErrorHandler
Creates an error handler specific to job and job template operations.- Returns:
- A Consumer representing the job error handler.
-
statisticsErrorHandler
Creates an error handler specific to Statistics operations.- Returns:
- A Consumer representing the Statistics error handler.
-