Exception: CommandTower::Clients::Transport::Error

Inherits:
StandardError
  • Object
show all
Defined in:
app/services/command_tower/clients/transport/error.rb

Overview

Expected outbound transport failures (timeout, connection refused, etc.). ClientBase maps these to failed ClientResult values — they are not framework defects.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, cause: nil) ⇒ Error

Returns a new instance of Error.



11
12
13
14
# File 'app/services/command_tower/clients/transport/error.rb', line 11

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

Instance Attribute Details

#causeObject (readonly)

Returns the value of attribute cause.



9
10
11
# File 'app/services/command_tower/clients/transport/error.rb', line 9

def cause
  @cause
end