verifactu-sdk API / NetworkErrorOptions
Interface: NetworkErrorOptions
Defined in: src/errors/VerifactuError.ts:238
Constructor options for NetworkError, layering transport-specific metadata on top of the standard VerifactuErrorOptions.
Extends
Properties
code?
readonlyoptionalcode?:string
Defined in: src/errors/VerifactuError.ts:50
AEAT error code (e.g. '1108'); omitted when the SDK detects the issue locally without a catalog mapping.
Inherited from
category?
readonlyoptionalcategory?:ErrorCategory
Defined in: src/errors/VerifactuError.ts:52
AEAT category derived from the catalog.
Inherited from
VerifactuErrorOptions.category
field?
readonlyoptionalfield?:string
Defined in: src/errors/VerifactuError.ts:54
Dotted path of the offending field (e.g. 'breakdown.0.taxRate').
Inherited from
invoiceId?
readonlyoptionalinvoiceId?:VerifactuErrorInvoiceId
Defined in: src/errors/VerifactuError.ts:56
Triple identifying the invoice the error belongs to.
Inherited from
VerifactuErrorOptions.invoiceId
cause?
readonlyoptionalcause?:unknown
Defined in: src/errors/VerifactuError.ts:58
Underlying cause, propagated via Error.cause.
Inherited from
status?
readonlyoptionalstatus?:number
Defined in: src/errors/VerifactuError.ts:240
HTTP status code, when one was received.
body?
readonlyoptionalbody?:string
Defined in: src/errors/VerifactuError.ts:242
Response body (truncated for safety), when one was received.
retryable?
readonlyoptionalretryable?:boolean
Defined in: src/errors/VerifactuError.ts:244
Whether the controller should retry this request.