lib/traits/common.php
public function return404($notifier = false, \Exception $exception = null)
    {
    	if (!defined('ERROR_404'))
    	{
    	    define('ERROR_404', 'Y');
    	}

        \CHTTP::SetStatus('404 Not Found');

        if ($exception !== false)
        {
            if ($notifier === false)
            {
                $this->exceptionNotifier = false;
            }

            if ($exception instanceof \Exception)
            {
                throw $exception;
            }
            else
            {
                throw new \Exception('Page not found');
            }
        }
    }
public function return404($notifier = false, \Exception $exception = null)
    {
    	if (!defined('ERROR_404'))
    	{
    	    define('ERROR_404', 'Y');
    	}

        \CHTTP::SetStatus('404 Not Found');

        if ($exception !== false)
        {
            if ($notifier === false)
            {
                $this->exceptionNotifier = false;
            }

            if ($exception instanceof \Exception)
            {
                throw $exception;
            }
            else
            {
                throw new \Exception('Page not found');
            }
        }
    }
public function return404 ( $ notifier = false , \ Exception $ exception = null ) { if ( ! defined ( 'ERROR_404' ) ) { define ( 'ERROR_404' , 'Y' ) ; } \ CHTTP :: SetStatus ( '404 Not Found' ) ; if ( $ exception !== false ) { if ( $ notifier === false ) { $ this -> exceptionNotifier = false ; } if ( $ exception instanceof \ Exception ) { throw $ exception ; } else { throw new \ Exception ( 'Page not found' ) ; } } }
Set status 404 and throw exception

@param bool $notifier Sent notify to admin email
@param \Exception|null|false $exception Exception which will be throwing or "false" what not throwing exceptions. Default — throw new \Exception()
@throws \Exception
Set status 404 and throw exception