Exception: Triglav::Agent::ApiClient::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/triglav/agent/api_client.rb

Direct Known Subclasses

AuthenticationError, ConnectionError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, cause) ⇒ Error

Returns a new instance of Error



22
23
24
25
# File 'lib/triglav/agent/api_client.rb', line 22

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

Instance Attribute Details

#causeObject (readonly)

Returns the value of attribute cause



21
22
23
# File 'lib/triglav/agent/api_client.rb', line 21

def cause
  @cause
end