Exception: SourceLicenseSDK::NetworkError
- Defined in:
- lib/source_license_sdk/exceptions.rb
Overview
Network and HTTP related errors
Instance Attribute Summary collapse
-
#response_body ⇒ Object
readonly
Returns the value of attribute response_body.
-
#response_code ⇒ Object
readonly
Returns the value of attribute response_code.
Instance Method Summary collapse
-
#initialize(message, response_code: nil, response_body: nil) ⇒ NetworkError
constructor
A new instance of NetworkError.
Constructor Details
#initialize(message, response_code: nil, response_body: nil) ⇒ NetworkError
Returns a new instance of NetworkError.
14 15 16 17 18 |
# File 'lib/source_license_sdk/exceptions.rb', line 14 def initialize(, response_code: nil, response_body: nil) super() @response_code = response_code @response_body = response_body end |
Instance Attribute Details
#response_body ⇒ Object (readonly)
Returns the value of attribute response_body.
12 13 14 |
# File 'lib/source_license_sdk/exceptions.rb', line 12 def response_body @response_body end |
#response_code ⇒ Object (readonly)
Returns the value of attribute response_code.
12 13 14 |
# File 'lib/source_license_sdk/exceptions.rb', line 12 def response_code @response_code end |