Method: Cisco::UnsupportedError#initialize
- Defined in:
- lib/cisco_node_utils/exceptions.rb
#initialize(feature, name, oper = nil, msg = nil) ⇒ UnsupportedError
Returns a new instance of UnsupportedError.
131 132 133 134 135 136 137 138 |
# File 'lib/cisco_node_utils/exceptions.rb', line 131 def initialize(feature, name, oper=nil, msg=nil) = "Feature '#{feature}'" += ", attribute '#{name}'" unless name.nil? += ", operation '#{oper}'" unless oper.nil? += ' is unsupported on this node' += ": #{msg}" unless msg.nil? super(, feature: feature, name: name, oper: oper) end |