<?php

namespace Mtc\Modules\Members\Classes;

/**
 * Authentication exception. This is thrown with user-friendly message which gets passed to the user.
 *
 * @author Aleksey Lavrinenko
 * @version 06.09.2016.
 */
class AuthenticationException extends \Exception
{
    /**
     * Return a new AuthenticationException with a predefined message.
     *
     * @return AuthenticationException
     */
    public static function wrongUsernameOrPassword()
    {
        return new self("We couldn't sign you in. Please check your email address and password, or use Forgot Password if you need to reset it.");
    }
}
