Exception: PoliPage::InvalidOptionsError

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

Overview

— SDK-internal errors. ‘status` is nil except where the SDK observed a status from a non-API hop (e.g., the S3 second-hop for DownloadError). —

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, code: "invalid_options") ⇒ InvalidOptionsError

Returns a new instance of InvalidOptionsError.



87
88
89
# File 'lib/poli_page/errors.rb', line 87

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