Exception: LicenseManagerSdk::LicenseManagerError
- Inherits:
-
StandardError
- Object
- StandardError
- LicenseManagerSdk::LicenseManagerError
- Defined in:
- lib/licensemanager_sdk/errors.rb
Instance Attribute Summary collapse
-
#response_body ⇒ Object
readonly
Returns the value of attribute response_body.
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(status_code, response_body) ⇒ LicenseManagerError
constructor
A new instance of LicenseManagerError.
Constructor Details
#initialize(status_code, response_body) ⇒ LicenseManagerError
Returns a new instance of LicenseManagerError.
5 6 7 8 9 |
# File 'lib/licensemanager_sdk/errors.rb', line 5 def initialize(status_code, response_body) super("LicenseManager API error #{status_code}: #{response_body}") @status_code = status_code @response_body = response_body end |
Instance Attribute Details
#response_body ⇒ Object (readonly)
Returns the value of attribute response_body.
3 4 5 |
# File 'lib/licensemanager_sdk/errors.rb', line 3 def response_body @response_body end |
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
3 4 5 |
# File 'lib/licensemanager_sdk/errors.rb', line 3 def status_code @status_code end |