class Rbeapi::Eapilib::CommandError
A CommandError
exception is raised in response to an eAPI call that returns a failure message.
Attributes
error_code[R]
error_text[R]
Public Class Methods
new(message, code, commands = nil)
click to toggle source
The exception contains the eAPI error code and error text.
@param message [String] The error message to return from raising
this exception.
@param code [Integer] The error code associated with the error
message to be raised.
@param commands [Array] The list of commands that were used in the
eAPI request message.
Calls superclass method
# File lib/rbeapi/eapilib.rb, line 88 def initialize(message, code, commands = nil) @error_code = code @error_text = message @commands = commands message = "Error [#{code}]: #{message}" super(message) end