Exception: Renogen::Exceptions::StratagyNotFound
- Defined in:
- lib/renogen/exceptions/stratagy_not_found.rb
Overview
Raised when an extraction stratagy for a given key can not be found
Instance Attribute Summary collapse
-
#missing_stratagy ⇒ Object
readonly
Returns the value of attribute missing_stratagy.
Instance Method Summary collapse
-
#initialize(type) ⇒ StratagyNotFound
constructor
A new instance of StratagyNotFound.
-
#message ⇒ String
Friendly error message.
Constructor Details
#initialize(type) ⇒ StratagyNotFound
Returns a new instance of StratagyNotFound.
7 8 9 10 |
# File 'lib/renogen/exceptions/stratagy_not_found.rb', line 7 def initialize(type) @missing_stratagy = type super end |
Instance Attribute Details
#missing_stratagy ⇒ Object (readonly)
Returns the value of attribute missing_stratagy.
5 6 7 |
# File 'lib/renogen/exceptions/stratagy_not_found.rb', line 5 def missing_stratagy @missing_stratagy end |
Instance Method Details
#message ⇒ String
Friendly error message
15 16 17 |
# File 'lib/renogen/exceptions/stratagy_not_found.rb', line 15 def "Error: Stratagy type '#{missing_stratagy}' not found" end |