X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/userbundle/blobdiff_plain/436b8a2b29c4df2d84bacfe2acf0545fefd55346..17869e03521ae16d21e3e7d7998ec23fd5da1686:/Exception/UnactivatedException.php diff --git a/Exception/UnactivatedException.php b/Exception/UnactivatedException.php new file mode 100644 index 0000000..cbf367d --- /dev/null +++ b/Exception/UnactivatedException.php @@ -0,0 +1,28 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Rapsys\UserBundle\Exception; + +use Symfony\Component\Security\Core\Exception\AccountStatusException; + +/** + * UnactivatedException is thrown when the user account is unactivated. + * + * {@inheritdoc} + */ +class UnactivatedException extends AccountStatusException { + /** + * {@inheritdoc} + */ + public function getMessageKey(): string { + return 'Account is not activated'; + } +}