1: | <?php declare(strict_types=1); |
2: | |
3: | namespace Salient\Contract\Sync; |
4: | |
5: | /** |
6: | * @api |
7: | */ |
8: | interface ErrorType |
9: | { |
10: | /** |
11: | * No entities matching the criteria were returned by the provider |
12: | */ |
13: | public const ENTITY_NOT_FOUND = 0; |
14: | |
15: | /** |
16: | * The same entity appears multiple times |
17: | */ |
18: | public const ENTITY_NOT_UNIQUE = 1; |
19: | |
20: | /** |
21: | * The entity should not exist, or has a missing counterpart |
22: | */ |
23: | public const ENTITY_NOT_EXPECTED = 2; |
24: | |
25: | /** |
26: | * The entity contains invalid data |
27: | */ |
28: | public const ENTITY_NOT_VALID = 3; |
29: | |
30: | /** |
31: | * The provider does not implement sync operations for the entity |
32: | */ |
33: | public const ENTITY_NOT_SUPPORTED = 4; |
34: | |
35: | /** |
36: | * Hierarchical data contains a circular reference |
37: | */ |
38: | public const HIERARCHY_IS_CIRCULAR = 5; |
39: | |
40: | /** |
41: | * The provider cannot establish a connection to the backend |
42: | */ |
43: | public const BACKEND_UNREACHABLE = 6; |
44: | } |
45: |