All files / domains/union error.ts

57.14% Statements 12/21
38.46% Branches 5/13
57.14% Functions 4/7
63.16% Lines 12/19
1 2 3 4 5 6 7 8 9 109x 9x     9x 9x 9x 9x    
import { BaseError } from 'services/error';
 
export class UnionError extends BaseError {
  constructor(target: Function, msg: string) {
    const fullMsg = `@Union '${target.name}': ${msg}`;
    super(fullMsg);
    this.message = fullMsg;
  }
}