@wocart/storefront / index / DomainError
Interface: DomainError
The error shape every SDK failure normalizes to. Keeping category, retry safety, and side-effect outcome together prevents a generic retry from duplicating orders, OTP requests, reviews, or abandonment writes.
Properties
category
readonlycategory:DomainErrorCategory
code
readonlycode:string
fieldIssues?
readonlyoptionalfieldIssues?: readonlyDomainFieldIssue[]
message
readonlymessage:string
operation
readonlyoperation:string
requestId?
readonlyoptionalrequestId?:string
Correlation id the server logged this failure under (context.requestId).
The only diagnostic a theme may safely surface — it never carries customer
data, and it is how a support request is traced back to one server log line.
retryable
readonlyretryable:boolean
retryAfterSeconds?
readonlyoptionalretryAfterSeconds?:number
sideEffect
readonlysideEffect:SideEffectOutcome