Files
openclaw/extensions/feishu/src/monitor.synthetic-error.ts
2026-06-04 21:59:00 -04:00

20 lines
620 B
TypeScript

// Feishu plugin module implements monitor.synthetic error behavior.
export class FeishuRetryableSyntheticEventError extends Error {
constructor(message: string, options?: ErrorOptions) {
super(message, options);
this.name = "FeishuRetryableSyntheticEventError";
}
}
export function isFeishuRetryableSyntheticEventError(
error: unknown,
): error is FeishuRetryableSyntheticEventError {
return (
error instanceof FeishuRetryableSyntheticEventError ||
(typeof error === "object" &&
error !== null &&
"name" in error &&
error.name === "FeishuRetryableSyntheticEventError")
);
}