Skip to main content

@terascope/data-mate / teal-frame/errors / AppendError

Class: AppendError

Defined in: data-mate/src/teal-frame/errors.ts:29

Thrown when an append fails and is rolled back.

An append runs in a transaction, so a failure leaves the table as it was. The message says how many rows remain, so a caller building one table from many payloads knows its earlier payloads are intact. The underlying error is kept as cause.

fromRecords does not use this error: it has no earlier table to report on, and it throws what DataFrame throws.

Extends​

  • Error

Constructors​

Constructor​

new AppendError(failure, cause): AppendError

Defined in: data-mate/src/teal-frame/errors.ts:30

Parameters​

ParameterType
failureAppendFailure
causeunknown

Returns​

AppendError

Overrides​

Error.constructor

Properties​

PropertyModifierTypeDefined in
failurereadonlyAppendFailuredata-mate/src/teal-frame/errors.ts:30