mirror of
https://github.com/OpenMTC/OpenMTC.git
synced 2025-05-21 01:27:36 +00:00
18 lines
265 B
Python
18 lines
265 B
Python
from openmtc.exc import OpenMTCError
|
|
|
|
|
|
class DBError(OpenMTCError):
|
|
status_code = 500
|
|
|
|
@property
|
|
def statusCode(self):
|
|
return self.status_code
|
|
|
|
|
|
class DBConflict(DBError):
|
|
status_code = 409
|
|
|
|
|
|
class DBNotFound(DBError):
|
|
status_code = 404
|