MCPcopy
hub / github.com/AstrBotDevs/AstrBot / ApiError

Class ApiError

astrbot/dashboard/responses.py:8–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6
7@dataclass
8class ApiError(Exception):
9 message: str
10 status_code: int = 400
11 data: Any = None
12
13
14def ok(data: Any = None, message: str | None = None) -> dict[str, Any]:

Callers 15

update_profileMethod · 0.90
_raise_cron_errorFunction · 0.90
require_dashboard_userFunction · 0.90
_require_api_key_scopeFunction · 0.90
require_scopeFunction · 0.90
_raise_command_errorFunction · 0.90
_raise_t2i_errorFunction · 0.90
_required_textFunction · 0.90
_raise_tools_errorFunction · 0.90
_raise_subagent_errorFunction · 0.90
send_im_messageFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected