Exception: SyncwiseApi::Errors::InvalidContentType
- Inherits:
-
SyncwiseError
- Object
- StandardError
- SyncwiseError
- SyncwiseApi::Errors::InvalidContentType
- Defined in:
- lib/syncwise_api/errors.rb
Instance Attribute Summary collapse
-
#header ⇒ Object
readonly
Returns the value of attribute header.
-
#request ⇒ Object
readonly
Returns the value of attribute request.
-
#resp ⇒ Object
readonly
Returns the value of attribute resp.
Instance Method Summary collapse
-
#initialize(resp, request, header) ⇒ InvalidContentType
constructor
A new instance of InvalidContentType.
Constructor Details
#initialize(resp, request, header) ⇒ InvalidContentType
Returns a new instance of InvalidContentType.
70 71 72 73 74 75 |
# File 'lib/syncwise_api/errors.rb', line 70 def initialize(resp, request, header) @resp = resp @request = request @header = header super("Api call returned an invalid Content-Type. Response: #{@resp}, request: #{@request}, header: #{@header}") end |
Instance Attribute Details
#header ⇒ Object (readonly)
Returns the value of attribute header.
77 78 79 |
# File 'lib/syncwise_api/errors.rb', line 77 def header @header end |
#request ⇒ Object (readonly)
Returns the value of attribute request.
77 78 79 |
# File 'lib/syncwise_api/errors.rb', line 77 def request @request end |
#resp ⇒ Object (readonly)
Returns the value of attribute resp.
77 78 79 |
# File 'lib/syncwise_api/errors.rb', line 77 def resp @resp end |