Exception: Ovh::Http2sms::ResponseParseError
- Defined in:
- lib/ovh/http2sms/errors.rb
Overview
Raised when the API response cannot be parsed
Instance Attribute Summary collapse
-
#content_type ⇒ String?
readonly
The content type that failed to parse.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message = "Failed to parse API response", content_type: nil, **options) ⇒ ResponseParseError
constructor
A new instance of ResponseParseError.
Constructor Details
#initialize(message = "Failed to parse API response", content_type: nil, **options) ⇒ ResponseParseError
Returns a new instance of ResponseParseError.
142 143 144 145 |
# File 'lib/ovh/http2sms/errors.rb', line 142 def initialize( = "Failed to parse API response", content_type: nil, **) @content_type = content_type super(, **) end |
Instance Attribute Details
#content_type ⇒ String? (readonly)
Returns The content type that failed to parse.
140 141 142 |
# File 'lib/ovh/http2sms/errors.rb', line 140 def content_type @content_type end |