Add MustLogin exception and apply to communication module

This commit is contained in:
Kijin Sung 2018-08-27 00:31:48 +09:00
parent fe4e336f2b
commit c1cbc5dbdb
3 changed files with 79 additions and 61 deletions

View 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);
}
}