mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-08 04:23:35 +00:00
feat: Support retry for 'Chat Data' (#1419)
This commit is contained in:
22
dbgpt/app/scene/exceptions.py
Normal file
22
dbgpt/app/scene/exceptions.py
Normal file
@@ -0,0 +1,22 @@
|
||||
"""Exceptions for Application."""
|
||||
import logging
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class BaseAppException(Exception):
|
||||
"""Base Exception for App"""
|
||||
|
||||
def __init__(self, message: str, view: str):
|
||||
"""Base Exception for App"""
|
||||
super().__init__(message)
|
||||
self.message = message
|
||||
self.view = view
|
||||
|
||||
|
||||
class AppActionException(BaseAppException):
|
||||
"""Exception for App Action."""
|
||||
|
||||
def __init__(self, message: str, view: str):
|
||||
"""Exception for App Action"""
|
||||
super().__init__(message, view)
|
Reference in New Issue
Block a user