Exception: Peddler::Errors::Error Private

Inherits:
StandardError
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/peddler/errors/error.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg = nil, cause = nil) ⇒ Error

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Error.



29
30
31
32
# File 'lib/peddler/errors/error.rb', line 29

def initialize(msg = nil, cause = nil)
  @cause = cause
  super msg
end

Instance Attribute Details

#causeObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



27
28
29
# File 'lib/peddler/errors/error.rb', line 27

def cause
  @cause
end