Exception: Ifconf::InvalidSubnetMask

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

Overview

Raised when a subnet mask value is not valid.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(raw_value) ⇒ InvalidSubnetMask

Returns a new instance of InvalidSubnetMask.



29
30
31
32
# File 'lib/ifconf/errors.rb', line 29

def initialize(raw_value)
  @raw_value = raw_value
  super("invalid subnet mask: #{raw_value}")
end

Instance Attribute Details

#raw_valueObject (readonly)

Returns the value of attribute raw_value.



27
28
29
# File 'lib/ifconf/errors.rb', line 27

def raw_value
  @raw_value
end