Exception: Renogen::Exceptions::StratagyNotFound

Inherits:
Base
  • Object
show all
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

Instance Method Summary collapse

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_stratagyObject (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

#messageString

Friendly error message

Returns:

  • (String)


15
16
17
# File 'lib/renogen/exceptions/stratagy_not_found.rb', line 15

def message
  "Error: Stratagy type '#{missing_stratagy}' not found"
end