import { text } from '@rsdk/common'; import { BootstrapException } from '../../base'; import { Exception } from '../../metadata'; @Exception({ description: text` Means that you added more than one transport implementations for one protocol. `, }) export class DuplicateProtocolException extends BootstrapException { constructor(protocol: string, duplicates: number) { super(text` You should provide only one transport for each protocol. Protocol ${protocol} has ${duplicates} implementations! `); } }