Exception: Ifconf::InvalidMacAddress

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

Overview

Raised when a string does not conform to the expected MAC address format.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(raw_value) ⇒ InvalidMacAddress

Returns a new instance of InvalidMacAddress.



19
20
21
22
# File 'lib/ifconf/errors.rb', line 19

def initialize(raw_value)
  @raw_value = raw_value
  super("invalid MAC address: #{raw_value}")
end

Instance Attribute Details

#raw_valueObject (readonly)

Returns the value of attribute raw_value.



17
18
19
# File 'lib/ifconf/errors.rb', line 17

def raw_value
  @raw_value
end