EpcError
public enum EpcErrorWhy an EPC could not be encoded or decoded (EpcException.Error).
Values
| Name | Value | Description |
|---|---|---|
InvalidInput | 0 | The input is empty or not in the expected form. |
InvalidElementString | 1 | The GS1 element string is invalid (format, check digit, characters; see the message). |
MissingElement | 2 | A GS1 key the scheme needs is missing (e.g. (21) for an SGTIN). |
InvalidCompanyPrefixLength | 3 | The GS1 Company Prefix length is missing or not 6 to 12 (4 and 5 are treated as 6, TDS §7.1). |
InvalidFilter | 4 | The filter value is not 0 to 7. |
GtinNotAllowed | 5 | TDS forbids this GTIN in an SGTIN (RCN-8, company internal or restricted circulation numbers, coupons, refund receipts, ISSN; TDS §7.3.3–7.3.8). |
ValueOutOfRange | 6 | A serial, extension or asset reference does not fit the scheme (numeric only, no leading zero, value range, length). |
InvalidCharacter | 7 | A character outside the set the scheme can encode (GS1 character set 82, TDS Table A-1). |
InvalidDate | 8 | A date for DSGTIN+ is missing, ambiguous or invalid (TDS §14.5.3). |
UnknownHeader | 9 | The binary encoding has a header that TDS does not assign, or a scheme this library does not decode. |
Truncated | 10 | The binary encoding is shorter than the scheme needs. |
InvalidBinary | 11 | A binary field holds a value TDS does not allow (partition 7, digits above 10^L, reserved bits not zero …). |
InvalidHex | 12 | The hexadecimal string contains other characters than 0-9 A-F. |
InvalidUri | 13 | The URI does not match the EPC URI grammar (TDS §6, §12). |

