Exception: Peddler::Errors::Error Private

Inherits:
StandardError
  • Object
show all
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, cause) ⇒ 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.



19
20
21
22
# File 'lib/peddler/errors/error.rb', line 19

def initialize(msg, cause)
  @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.



17
18
19
# File 'lib/peddler/errors/error.rb', line 17

def cause
  @cause
end