Class ErrorHandlers


  • public class ErrorHandlers
    extends java.lang.Object
    A set of consumers to handle errors for requests for table entities or for namespace entities, to throw the correct exception.
    • Method Detail

      • namespaceErrorHandler

        public static java.util.function.Consumer<ErrorResponse> namespaceErrorHandler()
      • tableErrorHandler

        public static java.util.function.Consumer<ErrorResponse> tableErrorHandler()
      • tableCommitHandler

        public static java.util.function.Consumer<ErrorResponse> tableCommitHandler()
      • defaultErrorHandler

        public static java.util.function.Consumer<ErrorResponse> defaultErrorHandler()
        Request error handler that handles the common cases that are included with all responses, such as 400, 500, etc.