Exception: SourceLicenseSDK::LicenseError

Inherits:
Error
  • Object
show all
Defined in:
lib/source_license_sdk/exceptions.rb

Overview

License validation errors

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, error_code: nil, retry_after: nil)
  super(message)
  @error_code = error_code
  @retry_after = retry_after
end

Instance Attribute Details

#error_codeObject (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_afterObject (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