import { UserData } from '../../ports/user-data' ; export class ExistingUserError extends Error { public readonly name = 'ExistingUserError' ; constructor ( userData ) { super ( 'User ' + userData . email + ' already registered.' ) ; } }