addError method

void addError (Object error, [ StackTrace stackTrace ])

Adds an error to the sink.

The error must not be null.

Must not be called on a closed sink.

Implementation

void addError(Object error, [StackTrace stackTrace]);