<?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("Please ensure your username is correct");
    }
}
