Exception: Checkmobi::Error

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

Direct Known Subclasses

CommunicationError, ParseError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, object = nil) ⇒ Error

Returns a new instance of Error.



6
7
8
9
# File 'lib/checkmobi/exceptions/exceptions.rb', line 6

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

Instance Attribute Details

#objectObject (readonly)

Returns the value of attribute object.



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

def object
  @object
end