Exception: Baba::BabaRuntimeError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/baba/runtime_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(token, message) ⇒ BabaRuntimeError

Returns a new instance of BabaRuntimeError.



5
6
7
8
# File 'lib/baba/runtime_error.rb', line 5

def initialize(token, message)
  super(message)
  @token = token
end

Instance Attribute Details

#tokenObject (readonly)

Returns the value of attribute token.



3
4
5
# File 'lib/baba/runtime_error.rb', line 3

def token
  @token
end