Exception: Clacky::InsufficientCreditError
- Inherits:
-
AgentError
- Object
- StandardError
- AgentError
- Clacky::InsufficientCreditError
- Defined in:
- lib/clacky.rb
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
-
#provider_id ⇒ Object
readonly
Returns the value of attribute provider_id.
Instance Method Summary collapse
-
#initialize(message, error_code: nil, provider_id: nil) ⇒ InsufficientCreditError
constructor
A new instance of InsufficientCreditError.
Constructor Details
#initialize(message, error_code: nil, provider_id: nil) ⇒ InsufficientCreditError
Returns a new instance of InsufficientCreditError.
142 143 144 145 146 |
# File 'lib/clacky.rb', line 142 def initialize(, error_code: nil, provider_id: nil) super() @error_code = error_code @provider_id = provider_id end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
140 141 142 |
# File 'lib/clacky.rb', line 140 def error_code @error_code end |
#provider_id ⇒ Object (readonly)
Returns the value of attribute provider_id.
140 141 142 |
# File 'lib/clacky.rb', line 140 def provider_id @provider_id end |