1: <?php declare( strict_types = 1 );
2:
3: namespace Waves\Common;
4:
5: class ExceptionCode
6: {
7: const BASE = 970053700;
8: const BASE58_DECODE = ExceptionCode::BASE | 1;
9: const BASE58_ENCODE = ExceptionCode::BASE | 2;
10: const FETCH_URI = ExceptionCode::BASE | 3;
11: const JSON_ENCODE = ExceptionCode::BASE | 4;
12: const JSON_DECODE = ExceptionCode::BASE | 5;
13: const KEY_MISSING = ExceptionCode::BASE | 6;
14: const STRING_EXPECTED = ExceptionCode::BASE | 7;
15: const INT_EXPECTED = ExceptionCode::BASE | 8;
16: const ARRAY_EXPECTED = ExceptionCode::BASE | 9;
17: const UNKNOWN_TYPE = ExceptionCode::BASE | 10;
18: const BOOL_EXPECTED = ExceptionCode::BASE | 11;
19: const BASE64_DECODE = ExceptionCode::BASE | 12;
20: const BAD_ALIAS = ExceptionCode::BASE | 13;
21: const BAD_ASSET = ExceptionCode::BASE | 14;
22: const BAD_ADDRESS = ExceptionCode::BASE | 15;
23: const BAD_CHAINID = ExceptionCode::BASE | 16;
24: const TIMEOUT = ExceptionCode::BASE | 17;
25: const UNEXPECTED = ExceptionCode::BASE | 18;
26: }
27: