Class: Vagrant::Hmurca::InvalidNodeNameError
- Inherits:
-
ParserError
- Object
- Booby::Error
- ParserError
- Vagrant::Hmurca::InvalidNodeNameError
- Defined in:
- lib/vagrant/hmurca/errors.rb
Overview
Public: Error raised when given node name is invalid.
Instance Method Summary collapse
-
#initialize(name, line_no) ⇒ InvalidNodeNameError
constructor
A new instance of InvalidNodeNameError.
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 |