Exception: Rbeapi::Eapilib::ConnectionError

Inherits:
EapiError
  • Object
show all
Defined in:
lib/rbeapi/eapilib.rb

Instance Attribute Summary collapse

Attributes inherited from EapiError

#commands

Instance Method Summary collapse

Methods inherited from EapiError

#initalize

Constructor Details

#initialize(message, connection_type = nil, commands = nil) ⇒ ConnectionError

A ConnectionError exception is raised when the connection object is unable to establish a connection with eAPI.

Parameters:

  • :message (String)

    The error message to return from raising this exception

  • :connection_type (String)

    The optional connection_type of the instance

  • :commands (Array)

    The list of commands that were used in the eAPI request message


105
106
107
108
109
# File 'lib/rbeapi/eapilib.rb', line 105

def initialize(message, connection_type = nil, commands = nil)
  @connection_type = connection_type
  @commands = commands
  super(message)
end

Instance Attribute Details

#connection_typeObject

Returns the value of attribute connection_type


93
94
95
# File 'lib/rbeapi/eapilib.rb', line 93

def connection_type
  @connection_type
end