Exception: Peddler::Token::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/peddler/token.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#causeObject (readonly)

Returns the value of attribute cause.



13
14
15
# File 'lib/peddler/token.rb', line 13

def cause
  @cause
end