Exception: Bibliothecary::RemoteParsingError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/bibliothecary/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, code) ⇒ RemoteParsingError

Returns a new instance of RemoteParsingError.



4
5
6
7
# File 'lib/bibliothecary/exceptions.rb', line 4

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

Instance Attribute Details

#codeObject

Returns the value of attribute code.



3
4
5
# File 'lib/bibliothecary/exceptions.rb', line 3

def code
  @code
end