| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | 1 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
);
}
} |