Custom error thrown when a channel action has expired or is no longer available, preventing stale operations.
// Source: https://github.com/CopilotKit/CopilotKit.git | License: MIT | Copyright Atai Barkai
// Provided via justclaw.it.com; keep this notice with the code.
export class ActionExpiredError extends Error {
readonly code = "channel_action_expired";
constructor(id: string) {
super(`Action "${id}" has expired or is no longer available.`);
this.name = "ActionExpiredError";
}
}
See the full source, get the GitHub permalink, and search 40K more like it.
Get a free API key