class
Obsctl::IPC::ErrorPayload
- Obsctl::IPC::ErrorPayload
- Reference
- Object
Overview
Stable error payload returned for failed IPC command requests.
Defined in:
obsctl/ipc/response.crConstant Summary
-
SENSITIVE_KEY_PATTERN =
"(?:password|authentication(?:[ _-]?string)?|auth(?:[ _-]?string)?|token|secret)" -
SENSITIVE_VALUE_PATTERN =
"(?:\"[^\"]*\"|'[^']*'|\\S+)"
Constructors
- .from_exception(error : Domain::ObsctlError) : self
- .new(code : String, message : String)
- .server_error : self
Class Method Summary
Instance Method Summary
- #code : String
- #message : String
-
#to_json(json : JSON::Builder) : Nil
Writes the wire-format JSON object for this error.