public class ErrorHandlers
extends java.lang.Object
It also includes utility methods to format error messages and convert stack traces to strings.
Modifier and Type | Class and Description |
---|---|
static class |
ErrorHandlers.OAuthErrorHandler
Error handler specific to OAuth2 requests.
|
Modifier and Type | Method and Description |
---|---|
static java.util.function.Consumer<ErrorResponse> |
catalogErrorHandler()
Creates an error handler specific to Catalog operations.
|
static java.util.function.Consumer<ErrorResponse> |
metalakeErrorHandler()
Creates an error handler specific to Metalake operations.
|
static java.util.function.Consumer<ErrorResponse> |
oauthErrorHandler()
Creates an error handler specific to OAuth2 requests.
|
static java.util.function.Consumer<ErrorResponse> |
partitionErrorHandler()
Creates an error handler specific to Partition operations.
|
static java.util.function.Consumer<ErrorResponse> |
restErrorHandler()
Creates a generic error handler for REST requests.
|
static java.util.function.Consumer<ErrorResponse> |
schemaErrorHandler()
Creates an error handler specific to Schema operations.
|
static java.util.function.Consumer<ErrorResponse> |
tableErrorHandler()
Creates an error handler specific to Table operations.
|
public static java.util.function.Consumer<ErrorResponse> metalakeErrorHandler()
public static java.util.function.Consumer<ErrorResponse> catalogErrorHandler()
public static java.util.function.Consumer<ErrorResponse> schemaErrorHandler()
public static java.util.function.Consumer<ErrorResponse> tableErrorHandler()
public static java.util.function.Consumer<ErrorResponse> partitionErrorHandler()
public static java.util.function.Consumer<ErrorResponse> restErrorHandler()
public static java.util.function.Consumer<ErrorResponse> oauthErrorHandler()