Exception: Stove::Error::StoveError
- Inherits:
-
StandardError
- Object
- StandardError
- Stove::Error::StoveError
- Defined in:
- lib/stove/error.rb
Direct Known Subclasses
CookbookAlreadyExists, GitFailed, GitTaggingFailed, MetadataNotFound, ServerUnavailable, ValidationFailed
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ StoveError
constructor
A new instance of StoveError.
- #message ⇒ Object (also: #to_s)
Constructor Details
#initialize(options = {}) ⇒ StoveError
Returns a new instance of StoveError.
18 19 20 21 22 23 |
# File 'lib/stove/error.rb', line 18 def initialize( = {}) @options = @filename = .delete(:_template) super() end |
Instance Method Details
#message ⇒ Object Also known as: to_s
25 26 27 28 |
# File 'lib/stove/error.rb', line 25 def erb = ERB.new(File.read(template)) erb.result(ErrorBinding.new(@options).get_binding) end |