Exception: Token::Resolver::UnresolvedTokenError
- Defined in:
- lib/token/resolver.rb
Overview
Raised when a token has no replacement value and on_missing is :raise.
Instance Attribute Summary collapse
-
#token_key ⇒ String
readonly
The token key that was not found.
Instance Method Summary collapse
-
#initialize(token_key, message = nil) ⇒ UnresolvedTokenError
constructor
A new instance of UnresolvedTokenError.
Constructor Details
#initialize(token_key, message = nil) ⇒ UnresolvedTokenError
Returns a new instance of UnresolvedTokenError.
40 41 42 43 |
# File 'lib/token/resolver.rb', line 40 def initialize(token_key, = nil) @token_key = token_key super( || "Unresolved token: #{token_key}") end |
Instance Attribute Details
#token_key ⇒ String (readonly)
Returns The token key that was not found.
36 37 38 |
# File 'lib/token/resolver.rb', line 36 def token_key @token_key end |