Class: Tama::Error::TransportError

Inherits:
Error
  • Object
show all
Defined in:
lib/tama/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message = "HTTP transport failed", cause: nil)
  @cause = cause
  super(message)
end

Instance Attribute Details

#causeObject (readonly)

Returns the value of attribute cause.



35
36
37
# File 'lib/tama/error.rb', line 35

def cause
  @cause
end