import { text } from '@rsdk/common'; import { BoolParser, Config, ConfigSection, Property } from '../config'; import { ConfigTag } from '../config/config.const'; @ConfigSection({ tags: [ConfigTag.infrastructure, ConfigTag.errorHandling], }) export class GlobalExceptionsConfig extends Config { @Property('VERBOSE_ERRORS', new BoolParser(), { defaultValue: true, description: text` If set "true" all exception messages will be returned to client. If false, only 4XX will contain messages, others - just status codes. `, }) readonly verbose!: boolean; }