mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 19:49:20 +03:00
Privacy/GDPR friendly version (removed: Social, Gravatar, Facebook, Google, Twitter, DropBox, OwnCloud)
Also removed: POP3, OAuth2 and update feature Added: admin password_hash/password_verify Requires: PHP 7.3+ Replaced: CRLF with LF Replaced: pclZip with ZipArchive
This commit is contained in:
parent
15ceddc202
commit
2cada68f41
293 changed files with 23728 additions and 85420 deletions
|
|
@ -9,7 +9,7 @@ namespace RainLoop\Exceptions;
|
|||
class ClientException extends Exception
|
||||
{
|
||||
/**
|
||||
* @var boolen
|
||||
* @var bool
|
||||
*/
|
||||
private $bLogoutOnException;
|
||||
|
||||
|
|
@ -18,13 +18,7 @@ class ClientException extends Exception
|
|||
*/
|
||||
private $sAdditionalMessage;
|
||||
|
||||
/**
|
||||
* @param int $iCode
|
||||
* @param \Exception $oPrevious = null
|
||||
* @param string $sAdditionalMessage = ''
|
||||
* @param boolean $bLogoutOnException = false
|
||||
*/
|
||||
public function __construct($iCode, $oPrevious = null, $sAdditionalMessage = '', $bLogoutOnException = false)
|
||||
public function __construct(int $iCode, ?\Exception $oPrevious = null, string $sAdditionalMessage = '', bool $bLogoutOnException = false)
|
||||
{
|
||||
parent::__construct(\RainLoop\Notifications::GetNotificationsMessage($iCode, $oPrevious),
|
||||
$iCode, $oPrevious);
|
||||
|
|
@ -34,29 +28,17 @@ class ClientException extends Exception
|
|||
$this->setLogoutOnException($bLogoutOnException);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getAdditionalMessage()
|
||||
public function getAdditionalMessage() : string
|
||||
{
|
||||
return $this->sAdditionalMessage;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return boolen
|
||||
*/
|
||||
public function getLogoutOnException()
|
||||
public function getLogoutOnException() : bool
|
||||
{
|
||||
return $this->bLogoutOnException;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param boolean $bLogoutOnException
|
||||
* @param string $sAdditionalLogoutMessage = ''
|
||||
*
|
||||
* @return ClientException
|
||||
*/
|
||||
public function setLogoutOnException($bLogoutOnException, $sAdditionalLogoutMessage = '')
|
||||
public function setLogoutOnException(bool $bLogoutOnException, string $sAdditionalLogoutMessage = '') : self
|
||||
{
|
||||
$this->bLogoutOnException = !!$bLogoutOnException;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue