Exception: Rbeapi::Eapilib::EapiError

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

Direct Known Subclasses

CommandError, ConnectionError

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#commandsObject

Returns the value of attribute commands


50
51
52
# File 'lib/rbeapi/eapilib.rb', line 50

def commands
  @commands
end

Instance Method Details

#initalize(message) ⇒ Object

Base error class for generating exceptions. 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


59
60
61
62
63
# File 'lib/rbeapi/eapilib.rb', line 59

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