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.



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

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.



8
9
10
# File 'lib/keen.rb', line 8

def original_error
  @original_error
end

Instance Method Details

#to_sObject



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

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