You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Bump up the error code for InvalidListToken such that it does not conflict with the error code Paused
* chore: reorder the errors and give 136 to InvalidListToken over Pausedx
* chore(errors): Add missing tests and err info
---------
Co-authored-by: Louis Ruch <[email protected]>
Copy file name to clipboardExpand all lines: internal/errors/code.go
+20-21Lines changed: 20 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -43,32 +43,31 @@ const (
43
43
InvalidDynamicCredentialCode=116// InvalidDynamicCredential represents that a dynamic credential for a session was in an invalid state
44
44
JobAlreadyRunningCode=117// JobAlreadyRunning represents that a Job is already running when an attempt to run again was made
45
45
SubtypeAlreadyRegisteredCode=118// SubtypeAlreadyRegistered represents that a value has already been registered in the subtype registry system.
46
-
NoPathFound=119// NoPathFound represents an error when no path is found to a worker
47
-
WorkerNotFound=120// WorkerNotFound represents an error when a worker is not found in the graph of downstream workers
48
-
CycleFound=121// CycleFound represents an error when a cycle is found between a parent and child worker
49
-
WorkerConnNotFound=122// WorkerConnNotFound represents an error when a connection to a worker is not found
50
-
KmsWorkerUnsupportedOperation=123// KmsWorkerUnsupportedOperation represents an error when a KMS worker is not supported for an operation
46
+
NoPathFoundCode=119// NoPathFound represents an error when no path is found to a worker
47
+
WorkerNotFoundCode=120// WorkerNotFound represents an error when a worker is not found in the graph of downstream workers
48
+
CycleFoundCode=121// CycleFound represents an error when a cycle is found between a parent and child worker
49
+
WorkerConnNotFoundCode=122// WorkerConnNotFound represents an error when a connection to a worker is not found
50
+
KmsWorkerUnsupportedOperationCode=123// KmsWorkerUnsupportedOperation represents an error when a KMS worker is not supported for an operation
51
51
52
52
// Note: Currently unused in OSS
53
-
RetryLimitExceeded=124// RetryLimitExceeded represents an error when a retry limit is exceeded
53
+
RetryLimitExceededCode=124// RetryLimitExceeded represents an error when a retry limit is exceeded
54
54
// Note: Currently unused in OSS
55
-
QueueIsFull=125// QueueIsFull results in attempting to add an item to a queue which is full
55
+
QueueIsFullCode=125// QueueIsFull results in attempting to add an item to a queue which is full
56
56
57
57
// Note: Storage errors are currently unused in OSS
58
-
StorageFileClosed=126// StorageFileClose represents an error when a file has been closed and a read/write operation is attempted on it
59
-
StorageContainerClosed=127// StorageContainerClosed represents an error when a container has been closed and a I/O operation is attempted on it
60
-
StorageFileReadOnly=128// StorageFileReadOnly represents an error when a file is readonly and a write operation is attempted on it
61
-
StorageFileWriteOnly=129// StorageFileWriteOnly represents an error when a file is write only and a read operation is attempted on it
62
-
StorageFileAlreadyExists=130// StorageFileAlreadyExists represents an error when a file already exists during an attempt to create it
63
-
StorageContainerReadOnly=131// StorageContainerReadOnly represents an error when a container is readonly and a write operation is attempted on it
64
-
StorageContainerWriteOnly=132// StorageContainerWriteOnly represents an error when a container is write only and a read operation is attempted on it
65
-
66
-
WorkerNotFoundForRequest=133// WorkerNotFoundForRequest represents an error when no appropriate worker is found which meets the conditions required to handle a request
67
-
Closed=134// Closed represents an error when an operation cannot be completed because the thing being operated on is closed
68
-
ChecksumMismatch=135// ChecksumMismatch represents an error when a checksum is mismatched
69
-
Paused=136// Paused represents an error when an operation cannot be completed because the thing being operated on is paused
70
-
71
-
InvalidListTokenCode=136// InvalidListToken represents an error where the provided list token is invalid
58
+
StorageFileClosedCode=126// StorageFileClose represents an error when a file has been closed and a read/write operation is attempted on it
59
+
StorageContainerClosedCode=127// StorageContainerClosed represents an error when a container has been closed and a I/O operation is attempted on it
60
+
StorageFileReadOnlyCode=128// StorageFileReadOnly represents an error when a file is readonly and a write operation is attempted on it
61
+
StorageFileWriteOnlyCode=129// StorageFileWriteOnly represents an error when a file is write only and a read operation is attempted on it
62
+
StorageFileAlreadyExistsCode=130// StorageFileAlreadyExists represents an error when a file already exists during an attempt to create it
63
+
StorageContainerReadOnlyCode=131// StorageContainerReadOnly represents an error when a container is readonly and a write operation is attempted on it
64
+
StorageContainerWriteOnlyCode=132// StorageContainerWriteOnly represents an error when a container is write only and a read operation is attempted on it
65
+
66
+
WorkerNotFoundForRequestCode=133// WorkerNotFoundForRequest represents an error when no appropriate worker is found which meets the conditions required to handle a request
67
+
ClosedCode=134// Closed represents an error when an operation cannot be completed because the thing being operated on is closed
68
+
ChecksumMismatchCode=135// ChecksumMismatch represents an error when a checksum is mismatched
69
+
InvalidListTokenCode=136// InvalidListToken represents an error where the provided list token is invalid
70
+
PausedCode=137// Paused represents an error when an operation cannot be completed because the thing being operated on is paused
72
71
73
72
AuthAttemptExpiredCode=198// AuthAttemptExpired represents an expired authentication attempt
74
73
AuthMethodInactiveCode=199// AuthMethodInactive represents an error that means the auth method is not active.
0 commit comments