mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2026-01-15 05:42:17 -08:00
10 lines
512 B
TypeScript
10 lines
512 B
TypeScript
import { i18n } from '@services/libs/i18n';
|
|
import { DeferredMenuItemConstructorOptions } from './interface';
|
|
|
|
export class InsertMenuAfterSubMenuIndexError extends Error {
|
|
constructor(afterSubMenu: string, menuID: string, menu: DeferredMenuItemConstructorOptions) {
|
|
super();
|
|
this.name = i18n.t('Error.InsertMenuAfterSubMenuIndexError');
|
|
this.message = i18n.t('Error.InsertMenuAfterSubMenuIndexErrorDescription', { afterSubMenu, menuID, menu: menu.id ?? menu.role ?? JSON.stringify(menu) });
|
|
}
|
|
}
|