Code coverage report for core/src/errors/not-implemented.ts

Statements: 28.57% (2 / 7)      Branches: 0% (0 / 3)      Functions: 0% (0 / 2)      Lines: 33.33% (2 / 6)      Ignored: none     

All files » core/src/errors/ » not-implemented.ts
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 171   1                            
import {joinFqn} from '../util';
 
export class NotImplementedError extends Error {
 
  constructor(message: string, readonly target?: { name: string }, readonly prop?: string) {
    super(message);
  }
 
  static methodNotImplemented(methodName: string, type?: { name: string }, additionalDetails = ''): Error {
    const msg = `Method "${joinFqn(type || '', methodName)}" not implemented! ${additionalDetails}`;
    return new NotImplementedError(
      msg,
      type,
      methodName
    );
  }
}