import { translations } from '@payloadcms/translations/api';
import httpStatus from 'http-status';
import APIError from './APIError.js';
class AuthenticationError extends APIError {
    constructor(t){
        super(t ? t('error:emailOrPasswordIncorrect') : translations.en.error.emailOrPasswordIncorrect, httpStatus.UNAUTHORIZED);
    }
}
export default AuthenticationError;

//# sourceMappingURL=AuthenticationError.js.map