Exception: Clacky::InsufficientCreditError

Inherits:
AgentError
  • Object
show all
Defined in:
lib/clacky.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

Instance Attribute Details

#error_codeObject (readonly)

Returns the value of attribute error_code.



140
141
142
# File 'lib/clacky.rb', line 140

def error_code
  @error_code
end

#provider_idObject (readonly)

Returns the value of attribute provider_id.



140
141
142
# File 'lib/clacky.rb', line 140

def provider_id
  @provider_id
end