Exception: CiscoNxapi::CliError
- Inherits:
-
NxapiError
- Object
- RuntimeError
- NxapiError
- CiscoNxapi::CliError
- Defined in:
- lib/cisco_nxapi/cisco_nxapi.rb
Instance Attribute Summary collapse
-
#clierror ⇒ Object
readonly
Returns the value of attribute clierror.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#input ⇒ Object
readonly
Returns the value of attribute input.
-
#msg ⇒ Object
readonly
Returns the value of attribute msg.
-
#previous ⇒ Object
readonly
Returns the value of attribute previous.
Instance Method Summary collapse
-
#initialize(input, msg, code, clierror, previous) ⇒ CliError
constructor
A new instance of CliError.
- #message ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(input, msg, code, clierror, previous) ⇒ CliError
Returns a new instance of CliError.
31 32 33 34 35 36 37 |
# File 'lib/cisco_nxapi/cisco_nxapi.rb', line 31 def initialize(input, msg, code, clierror, previous) @input = input @msg = msg @code = code @clierror = clierror @previous = previous end |
Instance Attribute Details
#clierror ⇒ Object (readonly)
Returns the value of attribute clierror.
30 31 32 |
# File 'lib/cisco_nxapi/cisco_nxapi.rb', line 30 def clierror @clierror end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
30 31 32 |
# File 'lib/cisco_nxapi/cisco_nxapi.rb', line 30 def code @code end |
#input ⇒ Object (readonly)
Returns the value of attribute input.
30 31 32 |
# File 'lib/cisco_nxapi/cisco_nxapi.rb', line 30 def input @input end |
#msg ⇒ Object (readonly)
Returns the value of attribute msg.
30 31 32 |
# File 'lib/cisco_nxapi/cisco_nxapi.rb', line 30 def msg @msg end |
#previous ⇒ Object (readonly)
Returns the value of attribute previous.
30 31 32 |
# File 'lib/cisco_nxapi/cisco_nxapi.rb', line 30 def previous @previous end |
Instance Method Details
#message ⇒ Object
43 44 45 |
# File 'lib/cisco_nxapi/cisco_nxapi.rb', line 43 def to_s end |
#to_s ⇒ Object
39 40 41 |
# File 'lib/cisco_nxapi/cisco_nxapi.rb', line 39 def to_s "CliError: '#{@input}' rejected with message: '#{clierror}'" end |