Class: Vagrant::Hmurca::InvalidNodeNameError

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

Overview

Public: Error raised when given node name is invalid.

Instance Method Summary collapse

Constructor Details

#initialize(name, line_no) ⇒ InvalidNodeNameError

Returns a new instance of InvalidNodeNameError.



44
45
46
47
48
49
# File 'lib/vagrant/hmurca/errors.rb', line 44

def initialize(name, line_no)
  super(
    "Invalid node name (line #{line_no}): expected only letters, digits "+
    "and dash symbols, got #{name}"
    )
end