Exception: PaymobAccept::Errors::BadGateway

Inherits:
StandardError
  • Object
show all
Defined in:
lib/paymob_accept/errors/bad_gateway.rb

Instance Method Summary collapse

Constructor Details

#initialize(message:) ⇒ BadGateway

Returns a new instance of BadGateway.



4
5
6
7
8
9
10
# File 'lib/paymob_accept/errors/bad_gateway.rb', line 4

def initialize(message:)
  super(
    title: 'Bad Gateway',
    status: 502,
    detail: message || 'An error has occured communicating with the external gateway',
  )
end