Free and Open-source video streaming suite. https://miracle-tv.live
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

17 lines
487 B

import { ApolloError } from "apollo-server-errors";
export class UserExistsError extends ApolloError {
constructor() {
super('User with this username already exists', 'E_USER_EXISTS');
Object.defineProperty(this, 'name', { value: 'UserExistsError' });
}
}
export class EmailExistsError extends ApolloError {
constructor() {
super('User with this email already exists', 'E_EMAIL_EXISTS');
Object.defineProperty(this, 'name', { value: 'UserExistsError' });
}
}