Exception: CommandTower::Clients::Transport::Error
- Inherits:
-
StandardError
- Object
- StandardError
- CommandTower::Clients::Transport::Error
- 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
-
#cause ⇒ Object
readonly
Returns the value of attribute cause.
Instance Method Summary collapse
-
#initialize(message = nil, cause: nil) ⇒ Error
constructor
A new instance of Error.
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( = nil, cause: nil) @cause = cause super() end |
Instance Attribute Details
#cause ⇒ Object (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 |