import { text } from '@rsdk/common'; import { BootstrapException, Exception } from '../../exceptions'; import { APP_NAME_PATTERN } from '../app-name.const'; @Exception({ description: text` Application name (in package.json) doesn't follow naming conventions. `, }) export class InvalidAppNameException extends BootstrapException { constructor(name: string) { super(text` Application name <${name}> is invalid! It should match regexp ${APP_NAME_PATTERN} which means that it should include 2 or more parts separated with ".". Last one is considered name, others are namespaces. In each part only "a-z" and "-" are allowed! Please fix it in your package.json file. `); } }