export class CannotOverrideError extends Error { public cause ? : Error ; constructor ( message , cause ? ) { super ( message ) ; this . cause = cause ; Object . setPrototypeOf ( this , CannotOverrideError . prototype ) ; } }