Class: Vagrant::Hmurca::InvalidBooleanValueError

Inherits:
ParserError
  • Object
show all
Defined in:
lib/vagrant/hmurca/errors.rb

Overview

Public: Error raised when invalid boolean value given.

Instance Method Summary collapse

Constructor Details

#initialize(value, line_no) ⇒ InvalidBooleanValueError

Returns a new instance of InvalidBooleanValueError.



27
28
29
30
31
32
# File 'lib/vagrant/hmurca/errors.rb', line 27

def initialize(value, line_no)
  super(
    "Invalid boolean value (line #{line_no}): " +
    "expected yes or no, got #{value}"
    )
end