Exception: Pandoru::APIError

Inherits:
PandoruError show all
Defined in:
lib/pandoru/errors.rb

Overview

API related errors

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, error_code = nil) ⇒ APIError

Returns a new instance of APIError.



32
33
34
35
# File 'lib/pandoru/errors.rb', line 32

def initialize(message = nil, error_code = nil)
  @error_code = error_code
  super(message)
end

Instance Attribute Details

#error_codeObject (readonly)

Returns the value of attribute error_code.



30
31
32
# File 'lib/pandoru/errors.rb', line 30

def error_code
  @error_code
end