Exception: PortAuthority::Errors::ETCDIsSick

Inherits:
StandardError
  • Object
show all
Defined in:
lib/port-authority.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(etcd, message = 'ETCD is not healthy') ⇒ ETCDIsSick

Returns a new instance of ETCDIsSick.



15
16
17
18
# File 'lib/port-authority.rb', line 15

def initialize(etcd, message = 'ETCD is not healthy')
  @message = message
  @etcd = etcd
end

Instance Attribute Details

#etcdObject (readonly)

Returns the value of attribute etcd.



14
15
16
# File 'lib/port-authority.rb', line 14

def etcd
  @etcd
end

#messageObject (readonly)

Returns the value of attribute message.



14
15
16
# File 'lib/port-authority.rb', line 14

def message
  @message
end