All files / domains/enum error.ts

80.95% Statements 17/21
46.15% Branches 6/13
71.43% Functions 5/7
89.47% Lines 17/19
1 2 3 4 5 6 7 8 9 109x 9x     9x 9x 9x 9x    
import { BaseError } from 'services/error';
 
export class EnumError extends BaseError {
  constructor(name: string, msg: string) {
    const fullMsg = `Enum ${name}: ${msg}`;
    super(fullMsg);
    this.message = fullMsg;
  }
}