Exception: Ifconf::InvalidInterfaceName

Inherits:
Error
  • Object
show all
Defined in:
lib/ifconf/errors.rb

Overview

Raised when an interface name contains invalid characters.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(raw_value) ⇒ InvalidInterfaceName

Returns a new instance of InvalidInterfaceName.



39
40
41
42
# File 'lib/ifconf/errors.rb', line 39

def initialize(raw_value)
  @raw_value = raw_value
  super("invalid interface name: #{raw_value}")
end

Instance Attribute Details

#raw_valueObject (readonly)

Returns the value of attribute raw_value.



37
38
39
# File 'lib/ifconf/errors.rb', line 37

def raw_value
  @raw_value
end