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.
38 39 40 41 |
# File 'lib/token/resolver.rb', line 38 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.
34 35 36 |
# File 'lib/token/resolver.rb', line 34 def token_key @token_key end |