all repos — kitten @ 2f9ac75e21a898fba92010820bd8b6df696bc368

pkgs/core/src/errors.ts (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
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.`,
    );
  }
}