Exception: Peddler::Token::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Peddler::Token::Error
- Defined in:
- lib/peddler/token.rb
Instance Attribute Summary collapse
-
#cause ⇒ Object
readonly
Returns the value of attribute cause.
Instance Method Summary collapse
-
#initialize(msg = nil, cause = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(msg = nil, cause = nil) ⇒ Error
Returns a new instance of Error.
15 16 17 18 |
# File 'lib/peddler/token.rb', line 15 def initialize(msg = nil, cause = nil) @cause = cause super(msg) end |
Instance Attribute Details
#cause ⇒ Object (readonly)
Returns the value of attribute cause.
13 14 15 |
# File 'lib/peddler/token.rb', line 13 def cause @cause end |