mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-27 06:13:32 +09:00
Add MustLogin exception and apply to communication module
This commit is contained in:
parent
fe4e336f2b
commit
c1cbc5dbdb
3 changed files with 79 additions and 61 deletions
18
common/framework/exceptions/mustlogin.php
Normal file
18
common/framework/exceptions/mustlogin.php
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
|
||||
namespace Rhymix\Framework\Exceptions;
|
||||
|
||||
/**
|
||||
* The "must login" exception class.
|
||||
*/
|
||||
class MustLogin extends \Rhymix\Framework\Exception
|
||||
{
|
||||
public function __construct($message = '', $code = 0, $previous = null)
|
||||
{
|
||||
if ($message === '')
|
||||
{
|
||||
$message = lang('msg_not_logged');
|
||||
}
|
||||
parent::__construct($message, $code, $previous);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue