一旦抛错,直接跳到页面错误,不显示抛错内容。
像微信支付和其他的类库,我在引用后,因为程序有些异常得抛出,并看到内容,如何在debug关闭,还能看到抛出内容。
throw new SDKRuntimeException("统一支付接口中,缺少必填参数openid!trade_type为JSAPI时,openid为必填参数!" . "
");
class SDKRuntimeException extends Exception {
public function errorMessage()
{
return $this->getMessage();
}
}