Exception: Peddler::Errors::Error Private
- Inherits:
-
StandardError
- Object
- StandardError
- Peddler::Errors::Error
- 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
- #cause ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(msg = nil, cause = nil) ⇒ Error
constructor
private
A new instance of Error.
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
#cause ⇒ Object (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 |