Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 210c9808

Přidáno uživatelem David Friesecký před téměř 4 roky(ů)

Re #8884 - Deleted constants of exception messages

Zobrazit rozdíly:

src/dao/certificate_repository.py
9 9
from src.model.certificate import Certificate
10 10
from src.utils.logger import Logger
11 11

  
12
INTEGRITY_ERROR_MSG = "Database relational integrity corrupted."
13
PROGRAMMING_ERROR_MSG = "Exception raised for programming errors (etc. SQL statement)."
14
OPERATIONAL_ERROR_MSG = "Exception raised for errors that are related to the database’s operation."
15
NOT_SUPPORTED_ERROR_MSG = "Method or database API was used which is not supported by the database"
16
DATABASE_ERROR_MSG = "Unknown exception that are related to the database."
17
ERROR_MSG = "Unknown exception."
18

  
19 12

  
20 13
class CertificateRepository:
21 14

  

Také k dispozici: Unified diff