(message, status, data, endpoint)
| 684 | */ |
| 685 | class APIError extends Error { |
| 686 | constructor(message, status, data, endpoint) { |
| 687 | super(message); |
| 688 | this.name = 'APIError'; |
| 689 | this.status = status; |
| 690 | this.data = data; |
| 691 | this.endpoint = endpoint; |
| 692 | } |
| 693 | } |
| 694 | |
| 695 | // 全局API实例 |
nothing calls this directly
no outgoing calls
no test coverage detected