try { // your code } catch (XSException $e) { } 1.4.8-dev 从我们官网的下载中心就可以下载到啊
.../lib/XS.php'; $xs = new XS('demo'); $docs = $xs->search->search('15'); } catch (XSException $e) { echo $e; // 直接输出异常描述 if (defined('DEBUG')) // 如果是 DEBUG 模式,则输出堆栈情况 echo "\n" . $e->getTraceAsString() . "\n"; }
... echo '200'; } } catch(XSException $e) { echo '500'; } 更新 try { $xs = new XS('projectname'); $index =...