Exception: ZeevexCluster::Coordinator::CoordinatorError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/zeevex_cluster/coordinator.rb

Overview

errors throw by these classes

Direct Known Subclasses

ConnectionError, ConsistencyError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, original = nil) ⇒ CoordinatorError

Returns a new instance of CoordinatorError.



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

def initialize(message, original = nil)
  @chained = original
  super(message)
end

Instance Attribute Details

#chainedObject

Returns the value of attribute chained.



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

def chained
  @chained
end

Instance Method Details

#to_sObject



13
14
15
# File 'lib/zeevex_cluster/coordinator.rb', line 13

def to_s
  @chained ? super + "; chained = #{@chained.inspect}" : super
end