<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Exception; class BizException extends \Exception { public $param = array(); public static function throws($phm8V, $pFM9U = array()) { goto j0NKD; j0NKD: $tZVhb = new BizException($phm8V); goto qWlQa; Lt3cF: throw $tZVhb; goto Blhx0; qWlQa: $tZVhb->param = $pFM9U; goto Lt3cF; Blhx0: } public static function throwsIf($phm8V, $QxPGP, $pFM9U = array()) { if ($QxPGP) { goto WS_y4; HD7PU: throw $tZVhb; goto VC2O_; WS_y4: $tZVhb = new BizException($phm8V); goto LFIQ_; LFIQ_: $tZVhb->param = $pFM9U; goto HD7PU; VC2O_: } } public static function throwsIfResponseError($HMP0x, $bD3WW = '', $pFM9U = array()) { goto d1Mey; d1Mey: if ($bD3WW) { $bD3WW = $bD3WW . ':'; } goto cl3kV; XcZbT: if ($HMP0x['code']) { goto RcW7y; v4JhW: throw $tZVhb; goto LBNj_; UylQm: $tZVhb->param = $pFM9U; goto v4JhW; RcW7y: $tZVhb = new BizException($bD3WW . $HMP0x['msg']); goto UylQm; LBNj_: } goto OJ9Yr; cl3kV: if (empty($HMP0x)) { goto SALCS; vkMri: throw $tZVhb; goto nA9Nb; SALCS: $tZVhb = new BizException($bD3WW . 'Response Empty'); goto H0CTq; H0CTq: $tZVhb->param = $pFM9U; goto vkMri; nA9Nb: } goto XcZbT; OJ9Yr: } public static function throwsIfEmpty($phm8V, $cPAA2, $pFM9U = array()) { if (empty($cPAA2)) { goto Jm9d_; Jm9d_: $tZVhb = new BizException($phm8V); goto MY745; MQY2g: throw $tZVhb; goto d8Gf8; MY745: $tZVhb->param = $pFM9U; goto MQY2g; d8Gf8: } } public static function throwsIfNotEmpty($phm8V, $cPAA2, $pFM9U = array()) { if (!empty($cPAA2)) { goto EuDc4; taK1D: $tZVhb->param = $pFM9U; goto GQ6AA; GQ6AA: throw $tZVhb; goto b84ZY; EuDc4: $tZVhb = new BizException($phm8V); goto taK1D; b84ZY: } } }