Exception: Keen::Error

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/keen.rb

Direct Known Subclasses

ConfigurationError, HttpError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, _original_error = nil) ⇒ Error

Returns a new instance of Error.



12
13
14
15
# File 'lib/keen.rb', line 12

def initialize(message, _original_error=nil)
  self.original_error = _original_error
  super(message)
end

Instance Attribute Details

#original_errorObject

Returns the value of attribute original_error.



11
12
13
# File 'lib/keen.rb', line 11

def original_error
  @original_error
end

Instance Method Details

#to_sObject



17
18
19
# File 'lib/keen.rb', line 17

def to_s
  "Keen IO Exception: #{super}"
end