export class InvalidIdError extends Error { private constructor ( stack ? ) { super ( stack ) ; } public static withString ( value ) { return new InvalidIdError ( `${ value } is not a valid uuid v4.` ) ; } }