gravitino.exceptions.handlers.permission_error_handler.PermissionErrorHandler

class gravitino.exceptions.handlers.permission_error_handler.PermissionErrorHandler

Bases: RestErrorHandler

Error handler for permission operations (grant/revoke).

__init__()

Methods

__init__()

handle(error_response)

Handles the error response and raise the appropriate Exception.

handle(error_response: ErrorResponse)

Handles the error response and raise the appropriate Exception. The implementation will use the provided error response to determine which exception to raise.

Args:

error_response: the error response from the server

Raises:

appropriate Exception.