Exception: LLIP::UnvalidTokenError

Inherits:
LLIPError
  • Object
show all
Defined in:
lib/llip/llip_error.rb

Instance Attribute Summary

Attributes inherited from LLIPError

#token

Instance Method Summary collapse

Methods inherited from LLIPError

#internal_message, #to_s

Constructor Details

#initialize(token) ⇒ UnvalidTokenError

Returns a new instance of UnvalidTokenError.



30
31
32
# File 'lib/llip/llip_error.rb', line 30

def initialize(token)
  super token, "the current token '#{token.value}' doesn't match with the regular expression #{token.name}."
end