You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
MCOL-5496: Merge CMAPI code to engine repo.
[add] cmapi code to engine
This commit is contained in:
committed by
Alan Mologorsky
parent
77eedd1756
commit
a079a2c944
22
cmapi/cmapi_server/exceptions.py
Normal file
22
cmapi/cmapi_server/exceptions.py
Normal file
@ -0,0 +1,22 @@
|
||||
"""Module contains custom exceptions."""
|
||||
|
||||
|
||||
class CMAPIBasicError(Exception):
|
||||
"""Basic exception raised for CMAPI related processes.
|
||||
|
||||
Attributes:
|
||||
message -- explanation of the error
|
||||
"""
|
||||
def __init__(self, message: str) -> None:
|
||||
self.message = message
|
||||
super().__init__(self.message)
|
||||
def __str__(self) -> str:
|
||||
return self.message
|
||||
|
||||
|
||||
class CEJError(CMAPIBasicError):
|
||||
"""Exception raised for CEJ related processes.
|
||||
|
||||
Attributes:
|
||||
message -- explanation of the error
|
||||
"""
|
Reference in New Issue
Block a user