Exception: PoliPage::InternalError

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

Instance Attribute Summary

Attributes inherited from Error

#code, #request_id, #status

Instance Method Summary collapse

Methods inherited from Error

#auth_error?, #network_error?, #payload_status, #rate_limit_error?, #retryable?, #to_payload, #validation_error?

Constructor Details

#initialize(message, status: nil) ⇒ InternalError

Returns a new instance of InternalError.



126
127
128
# File 'lib/poli_page/errors.rb', line 126

def initialize(message, status: nil)
  super(message, code: "INTERNAL_ERROR", status: status, request_id: nil)
end