export class HandlerAlreadyRegistered extends Error { readonly help : string ; constructor ( readonly handlerName ) { super ( `Attempted to register a handler, when a handler with the same name has already been registered.` ) ; this . help = `Handlers must be registered with a unique $name property` ; Object . setPrototypeOf ( this , new . target . prototype ) ; } }