-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy patherror_codes.py
More file actions
25 lines (22 loc) Β· 1.38 KB
/
error_codes.py
File metadata and controls
25 lines (22 loc) Β· 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
class ErrorCodes:
"""μλ¬ μ½λ μμ"""
NO_CERTIFICATE_HISTORY = "CS0002"
PIPELINE_ERROR = "CS0003"
class ErrorMessages:
"""μλ¬ λ©μμ§ μμ"""
NO_HISTORY = "μλ£ λͺ
λ¨μ μ‘΄μ¬νμ§ μμ΅λλ€. π₯²\nμ
λ ₯νμ μ΄λ¦ '{name}'(μ΄)κ° λͺ
λ¨μ μλμ§ νμΈνκ±°λ, μ€ν°λ λΉλ νΉμ μ§λ¬Έκ²μνμ λ¬Έμν΄μ£ΌμΈμ."
USER_DROPPED_OUT = "μ€ν°λλ₯Ό μλ£νμ§ μμμ΅λλ€. π₯²\nμ€ν°λ λΉλ νΉμ μ§λ¬Έκ²μνμ λ¬Έμν΄μ£ΌμΈμ."
STUDY_NOT_COMPLETED = "μλ£μ¦μ μ€ν°λκ° μλ£λ μ΄ν λ°κΈ κ°λ₯ν©λλ€.\nμ€ν°λ λΉλ νΉμ μ§λ¬Έκ²μνμ λ¬Έμν΄μ£ΌμΈμ."
PROJECT_NOT_FOUND = "ν΄λΉ νλ‘μ νΈκ° κ²μλμ§ μμ΅λλ€.\nκΈ°μμ μ€ν°λλͺ
μ λ€μ νμΈνκ±°λ, μ€ν°λ λΉλ νΉμ μ§λ¬Έκ²μνμ λ¬Έμν΄μ£ΌμΈμ."
PIPELINE_ERROR = "λ°κΈ μ²λ¦¬ μ€ μ€λ₯κ° λ°μνμ΅λλ€."
CONTACT_INFO = "μμ€ν
μμ μ€λ₯λ‘ μλ£μ¦ λ°κΈμ μ€ν¨νμ΅λλ€. π₯²\nλμ€μ½λλ₯Ό ν΅ν΄ κΉμν(kyopbi)μκ² λ¬Έμν΄μ£ΌμΈμ"
class ResponseStatus:
"""μλ΅ μν μμ"""
SUCCESS = "success"
FAIL = "fail"
ERROR = "error"
class NotEligibleError(Exception):
"""μλ£ μ΄λ ₯μ΄ μμ"""
def __init__(self, message: str = ErrorMessages.NO_HISTORY):
self.message = message
super().__init__(self.message)