App\services\View::jsonException PHP Method

jsonException() private static method

private static jsonException ( $msg, $errno )
    private static function jsonException($msg, $errno)
    {
        Session::save();
        exit(json_encode(['errno' => $errno, 'msg' => $msg]));
    }