Exception: Improvmx::Error

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

Direct Known Subclasses

CommunicationError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Public: initialize a Improvmx:Error object

message - a String describing the error object - an object with details about the error



9
10
11
12
# File 'lib/improvmx/exceptions/exceptions.rb', line 9

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

Instance Attribute Details

#objectObject (readonly)

Returns the value of attribute object.



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

def object
  @object
end