Skip to content

@alex.garcia/libfec / FecError

Class: FecError ​

Defined in: errors.ts:19

Base class of every error this package raises about a filing. code says which kind:

codeWhen
FEC_PARSEFecParseError: the header, cover or a row can't be parsed
FEC_MISSING_MAPPINGMissingMappingError: no column mapping for a row type
ERR_FILING_CLOSEDreading a FilingReader after close()
ERR_FILING_CONSUMEDa second itemizations(), rows(), records() or for…of on one reader

A missing or unreadable path is not a FecError: it throws the same error Node's fs.openSync would (code: "ENOENT", path, syscall: "open").

Extends ​

  • Error

Extended by ​

Constructors ​

Constructor ​

new FecError(message, options?): FecError

Defined in: errors.ts:23

Parameters ​

message ​

string

options? ​
code? ​

string

cause? ​

unknown

Returns ​

FecError

Overrides ​

Error.constructor

Properties ​

code? ​

optional code?: string

Defined in: errors.ts:21

What went wrong; see the table above.