Exception: Rbeapi::Eapilib::EapiError

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

Overview

Base error class for generating exceptions. The EapiError class

Direct Known Subclasses

CommandError, ConnectionError

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#commandsObject

Returns the value of attribute commands.



55
56
57
# File 'lib/rbeapi/eapilib.rb', line 55

def commands
  @commands
end

Instance Method Details

#initalize(message) ⇒ Object

The EapiError class provides one property for holding the set of commands issued when the error was generated.

Parameters:

  • message (String)

    The error message to return from raising the exception.



63
64
65
66
67
# File 'lib/rbeapi/eapilib.rb', line 63

def initalize(message)
  @message = message
  @commands = nil
  super(message)
end