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.



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

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.



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

def original_error
  @original_error
end

Instance Method Details

#to_sObject



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

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