mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2026-01-22 12:32:58 -08:00
9 lines
359 B
TypeScript
9 lines
359 B
TypeScript
import { i18n } from '@services/libs/i18n';
|
|
|
|
export class WorkspaceFailedToLoadError extends Error {
|
|
constructor(extraMessage?: string, url?: string) {
|
|
super(extraMessage);
|
|
this.name = i18n.t('Error.WorkspaceFailedToLoadError');
|
|
this.message = `${i18n.t('Error.WorkspaceFailedToLoadErrorDescription')} ${extraMessage ?? ''} ${url ?? ''}`;
|
|
}
|
|
}
|