Exception: Ifconf::InvalidMacAddress
- Defined in:
- lib/ifconf/errors.rb
Overview
Raised when a string does not conform to the expected MAC address format.
Instance Attribute Summary collapse
-
#raw_value ⇒ Object
readonly
Returns the value of attribute raw_value.
Instance Method Summary collapse
-
#initialize(raw_value) ⇒ InvalidMacAddress
constructor
A new instance of InvalidMacAddress.
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_value ⇒ Object (readonly)
Returns the value of attribute raw_value.
17 18 19 |
# File 'lib/ifconf/errors.rb', line 17 def raw_value @raw_value end |