Exception: BlizzardApi::ApiException

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/blizzard_api/exception.rb

Overview

API Exception

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg = '', code = nil) ⇒ ApiException

Returns a new instance of ApiException.



9
10
11
12
# File 'lib/blizzard_api/exception.rb', line 9

def initialize(msg = '', code = nil)
  @code = code
  super msg
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



7
8
9
# File 'lib/blizzard_api/exception.rb', line 7

def code
  @code
end