Class: Glia::Errors::BadGatewayError

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

Instance Attribute Summary

Attributes inherited from Error

#error_details, #message, #ref, #type

Instance Method Summary collapse

Methods inherited from Error

#to_h

Constructor Details

#initialize(message: nil, error_details: nil) ⇒ BadGatewayError

Returns a new instance of BadGatewayError.



17
18
19
20
21
22
23
24
# File 'lib/glia/errors/server_errors.rb', line 17

def initialize(message: nil, error_details: nil)
  super(
    type: BAD_GATEWAY_ERROR,
    ref: create_ref(BAD_GATEWAY_ERROR),
    message: message || 'Bad Gateway',
    error_details: error_details
  )
end