Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 1.15 KB

File metadata and controls

30 lines (24 loc) · 1.15 KB

Zernio::ErrorResponse

Properties

Name Type Description Notes
error String Human-readable error message. [optional]
type String Error class for programmatic handling. [optional]
code String Stable machine-readable error code. [optional]
param String The request field that caused the error, when applicable. [optional]
platform String Upstream platform (e.g. meta, google, tiktok) — present when type is platform_error. [optional]
platform_error Hash<String, Object> Raw error payload from the upstream platform, passed through verbatim so integrators can read provider-specific codes. For Meta this includes error_subcode, error_user_title, and error_user_msg. [optional]
details Hash<String, Object> Additional structured context (e.g. field-level validation errors). [optional]

Example

require 'zernio-sdk'

instance = Zernio::ErrorResponse.new(
  error: null,
  type: null,
  code: null,
  param: null,
  platform: null,
  platform_error: null,
  details: null
)