gravitino.dto.responses.error_response.ErrorResponse¶
- class gravitino.dto.responses.error_response.ErrorResponse(_code: int, _type: str, _message: str, _stack: List[str] | None)¶
Bases:
BaseResponse
Represents an error response.
- __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.