Exception: AtlasEngine::Elasticsearch::Error

Inherits:
StandardError
  • Object
show all
Extended by:
T::Sig
Defined in:
app/models/atlas_engine/elasticsearch/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, cause = nil) ⇒ Error

Returns a new instance of Error.



10
11
12
13
# File 'app/models/atlas_engine/elasticsearch/error.rb', line 10

def initialize(message, cause = nil)
  super(message)
  @cause = cause
end

Instance Attribute Details

#causeObject (readonly)

Returns the value of attribute cause.



16
17
18
# File 'app/models/atlas_engine/elasticsearch/error.rb', line 16

def cause
  @cause
end