MCPcopy Create free account
hub / github.com/agent-tower/core / constructor

Method constructor

packages/server/src/errors.ts:6–13  ·  view source on GitHub ↗
(
    message: string,
    public readonly code: string,
    public readonly statusCode: number = 400
  )

Source from the content-addressed store, hash-verified

4 */
5export class ServiceError extends Error {
6 constructor(
7 message: string,
8 public readonly code: string,
9 public readonly statusCode: number = 400
10 ) {
11 super(message);
12 this.name = 'ServiceError';
13 }
14}
15
16/** 资源未找到 */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected