@r1tsu/payload
Version:
11 lines (10 loc) • 423 B
JavaScript
import { en } from '@payloadcms/translations/languages/en';
import httpStatus from 'http-status';
import APIError from './APIError.js';
class AuthenticationError extends APIError {
constructor(t){
super(t ? t('error:emailOrPasswordIncorrect') : en.translations.error.emailOrPasswordIncorrect, httpStatus.UNAUTHORIZED);
}
}
export default AuthenticationError;
//# sourceMappingURL=AuthenticationError.js.map