1 2 3 4 5 6 7 8 9 10 | 9x 9x 9x 9x 9x 9x | import { BaseError } from 'services/error'; export class FieldError extends BaseError { constructor(target: Function, fieldName: string, msg: string) { const fullMsg = `@Type ${target.name}.${fieldName}: ${msg}`; super(fullMsg); this.message = fullMsg; } } |