Exception: Cisco::UnsupportedError
- Inherits:
-
CiscoError
- Object
- RuntimeError
- CiscoError
- Cisco::UnsupportedError
- Defined in:
- lib/cisco_node_utils/exceptions.rb
Overview
Exception class raised by CommandReference to indicate that a particular feature/attribute is explicitly excluded on the given node.
Instance Attribute Summary
Attributes inherited from CiscoError
Instance Method Summary collapse
-
#initialize(feature, name, oper = nil, msg = nil) ⇒ UnsupportedError
constructor
A new instance of UnsupportedError.
Methods inherited from CiscoError
Constructor Details
#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 |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Cisco::CiscoError