All files / domains/inputField error.ts

57.14% Statements 12/21
38.46% Branches 5/13
57.14% Functions 4/7
63.16% Lines 12/19

Press n or j to go to the next uncovered block, b, p or k for the previous block.

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