Exception: Railgun::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/railgun/errors.rb

Direct Known Subclasses

ConfigurationError, InternalError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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


7
8
9
10
11
# File 'lib/railgun/errors.rb', line 7

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

  @object = object
end

Instance Attribute Details

#objectObject (readonly)

Returns the value of attribute object


5
6
7
# File 'lib/railgun/errors.rb', line 5

def object
  @object
end