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 |
Modifier and Type | Method and Description |
---|---|
static java.util.function.Consumer<ErrorResponse> |
catalogErrorHandler() |
static java.util.function.Consumer<ErrorResponse> |
metalakeErrorHandler()
Creates an error handler specific to Metalake operations.
|
static java.util.function.Consumer<ErrorResponse> |
oauthErrorHandler() |
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> restErrorHandler()
public static java.util.function.Consumer<ErrorResponse> oauthErrorHandler()