mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-26 04:15:48 -06:00
14 lines
541 B
TypeScript
14 lines
541 B
TypeScript
import { formatConnectErrorMessage } from "@openclaw/gateway-protocol/connect-error-details";
|
|
import type { ErrorShape } from "@openclaw/gateway-protocol/frame-guards";
|
|
import { GatewayProtocolRequestError } from "./protocol-request.js";
|
|
|
|
export class GatewayClientRequestError extends GatewayProtocolRequestError {
|
|
constructor(error: Partial<ErrorShape>) {
|
|
super({
|
|
...error,
|
|
message: formatConnectErrorMessage({ message: error.message, details: error.details }),
|
|
});
|
|
this.name = "GatewayClientRequestError";
|
|
}
|
|
}
|