Exception: SourceLicenseSDK::LicenseError
- Defined in:
- lib/source_license_sdk/exceptions.rb
Overview
License validation errors
Direct Known Subclasses
ActivationError, LicenseExpiredError, LicenseNotFoundError, RateLimitError
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
-
#retry_after ⇒ Object
readonly
Returns the value of attribute retry_after.
Instance Method Summary collapse
-
#initialize(message, error_code: nil, retry_after: nil) ⇒ LicenseError
constructor
A new instance of LicenseError.
Constructor Details
#initialize(message, error_code: nil, retry_after: nil) ⇒ LicenseError
Returns a new instance of LicenseError.
25 26 27 28 29 |
# File 'lib/source_license_sdk/exceptions.rb', line 25 def initialize(, error_code: nil, retry_after: nil) super() @error_code = error_code @retry_after = retry_after end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
23 24 25 |
# File 'lib/source_license_sdk/exceptions.rb', line 23 def error_code @error_code end |
#retry_after ⇒ Object (readonly)
Returns the value of attribute retry_after.
23 24 25 |
# File 'lib/source_license_sdk/exceptions.rb', line 23 def retry_after @retry_after end |