all repos — kitten @ 497e81580c36a4074e1d806c95f54f5ab718a7bc

pkgs/router/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.`,
		);
	}
}