gravitino.dto.responses.oauth2_error_response.OAuth2ErrorResponse¶
- class gravitino.dto.responses.oauth2_error_response.OAuth2ErrorResponse(_code: int, _type: str, _message: str, _stack: List[str] | None)¶
Bases:
ErrorResponse
Represents the response of an OAuth2 error.
- __init__(_code: int, _type: str, _message: str, _stack: List[str] | None) None ¶
Methods
__init__
(_code, _type, _message, _stack)code
()format_error_message
()from_dict
(kvs, *[, infer_missing])from_json
(s, *[, parse_float, parse_int, ...])generate_error_response
(exception, message)message
()schema
(*[, infer_missing, only, exclude, ...])stack
()to_dict
([encode_json])to_json
(*[, skipkeys, ensure_ascii, ...])type
()validate
()Validates the response code.
Attributes
dataclass_json_config
- validate()¶
Validates the response code. @throws IllegalArgumentException if code value is negative.