Exception: DigiwinDsp::Error
- Inherits:
-
StandardError
- Object
- StandardError
- DigiwinDsp::Error
- Defined in:
- lib/digiwin_dsp.rb
Direct Known Subclasses
AuthenticationError, ConfigurationError, DuplicateRequestError, NetworkError, RateLimitError, ServerError, ValidationError
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
NOTE: response_body is intentionally NOT exposed.
-
#dsp_message ⇒ Object
readonly
NOTE: response_body is intentionally NOT exposed.
-
#http_status ⇒ Object
readonly
NOTE: response_body is intentionally NOT exposed.
-
#request_id ⇒ Object
readonly
NOTE: response_body is intentionally NOT exposed.
Instance Method Summary collapse
-
#initialize(message = nil, code: nil, dsp_message: nil, request_id: nil, http_status: nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message = nil, code: nil, dsp_message: nil, request_id: nil, http_status: nil) ⇒ Error
Returns a new instance of Error.
14 15 16 17 18 19 20 |
# File 'lib/digiwin_dsp.rb', line 14 def initialize( = nil, code: nil, dsp_message: nil, request_id: nil, http_status: nil) super() @code = code @dsp_message = @request_id = request_id @http_status = http_status end |
Instance Attribute Details
#code ⇒ Object (readonly)
NOTE: response_body is intentionally NOT exposed. Exception reporters (Sentry, Honeybadger, Rollbar, etc.) serialize instance variables by default; storing the raw DSP body would leak buyer PII (names, addresses, phone numbers) into third-party logging. Use the structured fields below for safe logging.
12 13 14 |
# File 'lib/digiwin_dsp.rb', line 12 def code @code end |
#dsp_message ⇒ Object (readonly)
NOTE: response_body is intentionally NOT exposed. Exception reporters (Sentry, Honeybadger, Rollbar, etc.) serialize instance variables by default; storing the raw DSP body would leak buyer PII (names, addresses, phone numbers) into third-party logging. Use the structured fields below for safe logging.
12 13 14 |
# File 'lib/digiwin_dsp.rb', line 12 def @dsp_message end |
#http_status ⇒ Object (readonly)
NOTE: response_body is intentionally NOT exposed. Exception reporters (Sentry, Honeybadger, Rollbar, etc.) serialize instance variables by default; storing the raw DSP body would leak buyer PII (names, addresses, phone numbers) into third-party logging. Use the structured fields below for safe logging.
12 13 14 |
# File 'lib/digiwin_dsp.rb', line 12 def http_status @http_status end |
#request_id ⇒ Object (readonly)
NOTE: response_body is intentionally NOT exposed. Exception reporters (Sentry, Honeybadger, Rollbar, etc.) serialize instance variables by default; storing the raw DSP body would leak buyer PII (names, addresses, phone numbers) into third-party logging. Use the structured fields below for safe logging.
12 13 14 |
# File 'lib/digiwin_dsp.rb', line 12 def request_id @request_id end |