mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-08 02:52:15 +00:00
20 lines
620 B
TypeScript
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")
|
|
);
|
|
}
|