mirror of
https://github.com/tencentmusic/cube-studio.git
synced 2024-12-27 06:29:10 +08:00
42 lines
715 B
Python
42 lines
715 B
Python
|
class MyappException(Exception):
|
||
|
status = 500
|
||
|
|
||
|
def __init__(self, msg):
|
||
|
super(MyappException, self).__init__(msg)
|
||
|
|
||
|
|
||
|
class MyappTimeoutException(MyappException):
|
||
|
pass
|
||
|
|
||
|
|
||
|
class MyappSecurityException(MyappException):
|
||
|
status = 401
|
||
|
|
||
|
def __init__(self, msg, link=None):
|
||
|
super(MyappSecurityException, self).__init__(msg)
|
||
|
self.link = link
|
||
|
|
||
|
|
||
|
class MetricPermException(MyappException):
|
||
|
pass
|
||
|
|
||
|
|
||
|
class NoDataException(MyappException):
|
||
|
status = 400
|
||
|
|
||
|
|
||
|
class NullValueException(MyappException):
|
||
|
status = 400
|
||
|
|
||
|
|
||
|
class MyappTemplateException(MyappException):
|
||
|
pass
|
||
|
|
||
|
|
||
|
class SpatialException(MyappException):
|
||
|
pass
|
||
|
|
||
|
|
||
|
class DatabaseNotFound(MyappException):
|
||
|
status = 400
|