Przejdź do głównej zawartości

Interface: StorefrontErrorOptions

Properties

cause?

optional cause?: unknown

Original error (if wrapping)


code

code: string

Error code for programmatic handling


graphqlErrors?

optional graphqlErrors?: GraphQLErrorInfo[]

GraphQL-level errors from the response


message

message: string

Human-readable message


retryAfterMs?

optional retryAfterMs?: number

How long the server asked the caller to wait before retrying, in milliseconds, parsed from the Retry-After response header. Present only when the server sent a parsable value — undefined means "no instruction", not "retry immediately".


status?

optional status?: number

HTTP status code (0 for network errors)


userErrors?

optional userErrors?: UserError[]

User errors from mutations (field-level validation)