Error handling

Each function returns an object having property code, which is the status code of the function, and message, which contains an error/warning message (if any).

Below are the possible status codes:

CodeMeaning
0Symbology was generated successfully.
2One or more options are invalid but the symbology was created anyway.
5The file path was too long.
6The data for the specified symbology is invalid.
7Error checking (if any) on the rendered barcode failed.
8One or more options are invalid and rendering failed.
9Invalid characters in input data.
10Cannot write to the given path.
11Corrupt or insufficient memory.

Deprecation Notice

Starting in version 2.1.0, the ErrorCode enum has been deprecated and will be removed in the next major release.