mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
lib: Add AuthenticationException for exceptions thrown during authentication
Our user backends log exceptions thrown during authentication but they don't throw a exception to inform the caller that an error occured. The new `AuthenticationException' class should be thrown in that case.
This commit is contained in:
parent
ede403977a
commit
5559cf6c2b
14
library/Icinga/Exception/AuthenticationException.php
Normal file
14
library/Icinga/Exception/AuthenticationException.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
// {{{ICINGA_LICENSE_HEADER}}}
|
||||
// {{{ICINGA_LICENSE_HEADER}}}
|
||||
|
||||
namespace Icinga\Exception;
|
||||
|
||||
use RuntimeException;
|
||||
|
||||
/**
|
||||
* Exception thrown if an error occurs during authentication
|
||||
*/
|
||||
class AuthenticationException extends RuntimeException
|
||||
{
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user