export class HaltExecution extends Error { constructor() { super("execution stopped by middleware"); } } export class CustomIdTooLong extends Error { constructor(componentName: string, length: number) { super( `custom ID for component "${componentName}" is too long (${length} characters). discord limits custom IDs to 100 characters.`, ); } }