class

Obsctl::IPC::ErrorPayload

Inherits Reference < Object

Stable error payload returned for failed IPC command requests.

Constants

SENSITIVE_KEY_PATTERN = "(?:password|authentication(?:[ _-]?string)?|auth(?:[ _-]?string)?|token|secret)"
SENSITIVE_VALUE_PATTERN = "(?:\"[^\"]*\"|'[^']*'|\\S+)"

Constructors

from_exception(error : Domain::ObsctlError) : self
Source
new(code : String, message : String)
Source
server_error
Source

Class methods

sanitize_message(message : String) : String
Source

Instance methods

code
Source
message
Source
to_json(json : JSON::Builder) : Nil

Writes the wire-format JSON object for this error.

Source