# All files / domains/objectType error.ts

80.95% Statements 17/21
46.15% Branches 6/13
71.43% Functions 5/7
89.47% Lines 17/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
    1020x
    20x

    20x
    20x
    20x
    20x

     import { BaseError } from '~/services/error';

    export class ObjectTypeError extends BaseError {
      constructor(target: Function, msg: string) {
        const fullMsg = `@ObjectType '${target.name}': ${msg}`;
        super(fullMsg);
        this.message = fullMsg;
      }
    }