Skip to content

Commit

Permalink
add UploadErrorCode enum for use in worker/api (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-codecov authored Sep 12, 2024
1 parent 5cc5f48 commit d26f241
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions shared/upload/constants.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from enum import StrEnum

ci = {
"travis": {
"title": "Travis-CI",
Expand Down Expand Up @@ -220,3 +222,13 @@
"bitbucket",
"bitbucket_server",
]


class UploadErrorCode(StrEnum):
FILE_NOT_IN_STORAGE = "file_not_in_storage"
REPORT_EXPIRED = "report_expired"
REPORT_EMPTY = "report_empty"

# We don't want these - try to add error cases when they arise
UNKNOWN_PROCESSING = "unknown_processing"
UNKNOWN_STORAGE = "unknown_storage"

0 comments on commit d26f241

Please sign in to comment.