Exception: RubyAem::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ruby_aem/error.rb

Overview

RubyAem error, contains a message and RubyAem::Result object useful for debugging the result and response when an error occurs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, result) ⇒ Error

Returns a new instance of Error.



21
22
23
24
# File 'lib/ruby_aem/error.rb', line 21

def initialize(message, result)
  super(message)
  self.result = result
end

Instance Attribute Details

#resultObject

Returns the value of attribute result.



19
20
21
# File 'lib/ruby_aem/error.rb', line 19

def result
  @result
end