@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:
code | When |
|---|---|
FEC_PARSE | FecParseError: the header, cover or a row can't be parsed |
FEC_MISSING_MAPPING | MissingMappingError: no column mapping for a row type |
ERR_FILING_CLOSED | reading a FilingReader after close() |
ERR_FILING_CONSUMED | a 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?
optionalcode?:string
Defined in: errors.ts:21
What went wrong; see the table above.