Exception: Cisco::UnsupportedError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Cisco::UnsupportedError
- Defined in:
- lib/cisco_node_utils/command_reference.rb
Overview
Exception class raised when a particular feature/attribute is explicitly excluded on the given node.
Instance Method Summary collapse
-
#initialize(feature, name, oper = nil, msg = nil) ⇒ UnsupportedError
constructor
A new instance of UnsupportedError.
Constructor Details
#initialize(feature, name, oper = nil, msg = nil) ⇒ UnsupportedError
Returns a new instance of UnsupportedError.
229 230 231 232 233 234 235 236 237 238 239 |
# File 'lib/cisco_node_utils/command_reference.rb', line 229 def initialize(feature, name, oper=nil, msg=nil) @feature = feature @name = name @oper = oper = "Feature '#{feature}'" += ", attribute '#{name}'" unless name.nil? += ", operation '#{oper}'" unless oper.nil? += ' is unsupported on this node' += ": #{msg}" unless msg.nil? super() end |