feat: 新增Notion自动化综合案例示例代码
This commit is contained in:
7
projects/notion-automator/pytion/exception.py
Normal file
7
projects/notion-automator/pytion/exception.py
Normal file
@@ -0,0 +1,7 @@
|
||||
class APIQueryException(Exception):
|
||||
def __init__(self, status_code: int, detail) -> None:
|
||||
self.status_code = status_code
|
||||
self.detail = detail
|
||||
|
||||
def __str__(self) -> str:
|
||||
return f"staus_code={self.status_code}, detail={self.detail}"
|
||||
Reference in New Issue
Block a user