Exception: Gateway::BadGateway

Inherits:
Error
  • Object
show all
Defined in:
lib/gateway/errors.rb

Overview

When backend did not send back an (processible) response. Usually when connection is dropped.

Direct Known Subclasses

BadResponse

Instance Attribute Summary

Attributes inherited from Error

#inner_error, #status

Instance Method Summary collapse

Methods inherited from Error

wrap

Constructor Details

#initialize(msg) ⇒ BadGateway

Returns a new instance of BadGateway.



22
23
24
25
# File 'lib/gateway/errors.rb', line 22

def initialize(msg)
  super
  self.status = "502"
end