import { text } from '@rsdk/common'; import { BootstrapException } from '../../base'; import { Exception } from '../../metadata'; @Exception({ description: text` Means that some provider or other object that registered or initialized twice. `, }) export class DoubleInitException extends BootstrapException { constructor(type: string, name: string, hint?: string) { const parts = [`${type} <${name}> is already registered or initialized!`]; if (hint) { parts.push(`Hint: ${hint}`); } super(parts.join(' ')); } }