Alexander Afanasyev | 7e72141 | 2017-01-11 13:36:08 -0800 | [diff] [blame] | 1 | Validation Error Code |
| 2 | ===================== |
| 3 | |
| 4 | The following table defines a list of known codes and their description, which can be returned from the :ndn-cxx:`v2::Validator` interface. |
| 5 | Other error codes can be returned by validator implementations outside ndn-cxx codebase. |
| 6 | |
| 7 | +------------+--------------------------+-----------------------------------------------------+ |
| 8 | | Error code | Short ID | Description | |
| 9 | +============+==========================+=====================================================+ |
| 10 | | 0 | NO_ERROR | No error | |
| 11 | +------------+--------------------------+-----------------------------------------------------+ |
| 12 | | 1 | INVALID_SIGNATURE | Invalid signature | |
| 13 | +------------+--------------------------+-----------------------------------------------------+ |
| 14 | | 2 | NO_SIGNATURE | Missing signature | |
| 15 | +------------+--------------------------+-----------------------------------------------------+ |
| 16 | | 3 | CANNOT_RETRIEVE_CERT | Cannot retrieve certificate | |
| 17 | +------------+--------------------------+-----------------------------------------------------+ |
| 18 | | 4 | EXPIRED_CERT | Certificate expired | |
| 19 | +------------+--------------------------+-----------------------------------------------------+ |
| 20 | | 5 | LOOP_DETECTED | Loop detected in certification chain | |
| 21 | +------------+--------------------------+-----------------------------------------------------+ |
| 22 | | 6 | MALFORMED_CERT | Malformed certificate | |
| 23 | +------------+--------------------------+-----------------------------------------------------+ |
| 24 | | 7 | EXCEEDED_DEPTH_LIMIT | Exceeded validation depth limit | |
| 25 | +------------+--------------------------+-----------------------------------------------------+ |
| 26 | | 8 | INVALID_KEY_LOCATOR | Key locator violates validation policy | |
| 27 | +------------+--------------------------+-----------------------------------------------------+ |
| 28 | | .. | ... | ... | |
| 29 | +------------+--------------------------+-----------------------------------------------------+ |
| 30 | | 255 | IMPLEMENTATION_ERROR | Internal implementation error | |
| 31 | +------------+--------------------------+-----------------------------------------------------+ |
| 32 | |
| 33 | Specialized validator implementations can use error codes >= 256 to indicate a specialized error. |