|
7 | 7 | CommonErrors = NewNamespace("common")
|
8 | 8 |
|
9 | 9 | // IllegalArgument is a type for invalid argument error
|
10 |
| - IllegalArgument = CommonErrors.NewType("illegal_argument") |
| 10 | + IllegalArgument = CommonErrors.NewType("illegal_argument") |
11 | 11 | // IllegalState is a type for invalid state error
|
12 |
| - IllegalState = CommonErrors.NewType("illegal_state") |
| 12 | + IllegalState = CommonErrors.NewType("illegal_state") |
13 | 13 | // IllegalFormat is a type for invalid format error
|
14 |
| - IllegalFormat = CommonErrors.NewType("illegal_format") |
| 14 | + IllegalFormat = CommonErrors.NewType("illegal_format") |
15 | 15 | // InitializationFailed is a type for initialization error
|
16 | 16 | InitializationFailed = CommonErrors.NewType("initialization_failed")
|
17 | 17 | // DataUnavailable is a type for unavailable data error
|
18 |
| - DataUnavailable = CommonErrors.NewType("data_unavailable") |
| 18 | + DataUnavailable = CommonErrors.NewType("data_unavailable") |
19 | 19 | // UnsupportedOperation is a type for unsupported operation error
|
20 | 20 | UnsupportedOperation = CommonErrors.NewType("unsupported_operation")
|
21 | 21 | // RejectedOperation is a type for rejected operation error
|
22 |
| - RejectedOperation = CommonErrors.NewType("rejected_operation") |
| 22 | + RejectedOperation = CommonErrors.NewType("rejected_operation") |
23 | 23 | // Interrupted is a type for interruption error
|
24 |
| - Interrupted = CommonErrors.NewType("interrupted") |
| 24 | + Interrupted = CommonErrors.NewType("interrupted") |
25 | 25 | // AssertionFailed is a type for assertion error
|
26 |
| - AssertionFailed = CommonErrors.NewType("assertion_failed") |
| 26 | + AssertionFailed = CommonErrors.NewType("assertion_failed") |
27 | 27 | // InternalError is a type for internal error
|
28 |
| - InternalError = CommonErrors.NewType("internal_error") |
| 28 | + InternalError = CommonErrors.NewType("internal_error") |
29 | 29 | // ExternalError is a type for external error
|
30 |
| - ExternalError = CommonErrors.NewType("external_error") |
| 30 | + ExternalError = CommonErrors.NewType("external_error") |
31 | 31 | // ConcurrentUpdate is a type for concurrent update error
|
32 |
| - ConcurrentUpdate = CommonErrors.NewType("concurrent_update") |
| 32 | + ConcurrentUpdate = CommonErrors.NewType("concurrent_update") |
33 | 33 | // TimeoutElapsed is a type for timeout error
|
34 |
| - TimeoutElapsed = CommonErrors.NewType("timeout", Timeout()) |
| 34 | + TimeoutElapsed = CommonErrors.NewType("timeout", Timeout()) |
35 | 35 | // NotImplemented is an error type for lacking implementation
|
36 |
| - NotImplemented = UnsupportedOperation.NewSubtype("not_implemented") |
| 36 | + NotImplemented = UnsupportedOperation.NewSubtype("not_implemented") |
37 | 37 | // UnsupportedVersion is a type for unsupported version error
|
38 |
| - UnsupportedVersion = UnsupportedOperation.NewSubtype("version") |
| 38 | + UnsupportedVersion = UnsupportedOperation.NewSubtype("version") |
39 | 39 | )
|
0 commit comments