Class: Tama::Error::TransportError
- Inherits:
-
Error
- Object
- Error
- Tama::Error::TransportError
- Defined in:
- lib/tama/error.rb
Instance Attribute Summary collapse
-
#cause ⇒ Object
readonly
Returns the value of attribute cause.
Instance Method Summary collapse
-
#initialize(message = "HTTP transport failed", cause: nil) ⇒ TransportError
constructor
A new instance of TransportError.
Constructor Details
#initialize(message = "HTTP transport failed", cause: nil) ⇒ TransportError
Returns a new instance of TransportError.
37 38 39 40 |
# File 'lib/tama/error.rb', line 37 def initialize( = "HTTP transport failed", cause: nil) @cause = cause super() end |
Instance Attribute Details
#cause ⇒ Object (readonly)
Returns the value of attribute cause.
35 36 37 |
# File 'lib/tama/error.rb', line 35 def cause @cause end |