<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Exception; class BizException extends \Exception { public $param = array(); public static function throws($NLEz7, $qHLCM = array()) { goto q8h8F; Szq8q: $WVwSN->param = $qHLCM; goto pxPSH; q8h8F: $WVwSN = new BizException($NLEz7); goto Szq8q; pxPSH: throw $WVwSN; goto SrWRl; SrWRl: } public static function throwsIf($NLEz7, $oVmwo, $qHLCM = array()) { if ($oVmwo) { goto iQPS3; vXHmD: $WVwSN->param = $qHLCM; goto xK2ba; iQPS3: $WVwSN = new BizException($NLEz7); goto vXHmD; xK2ba: throw $WVwSN; goto NtOsU; NtOsU: } } public static function throwsIfResponseError($IB0nv, $HTQyg = '', $qHLCM = array()) { goto zI5zS; yQzFv: if ($IB0nv['code']) { goto azYAm; azYAm: $WVwSN = new BizException($HTQyg . $IB0nv['msg']); goto MwR4_; D3rhR: throw $WVwSN; goto JjemX; MwR4_: $WVwSN->param = $qHLCM; goto D3rhR; JjemX: } goto PrQH_; nltu2: if (empty($IB0nv)) { goto YgArh; YgArh: $WVwSN = new BizException($HTQyg . 'Response Empty'); goto R65nU; R65nU: $WVwSN->param = $qHLCM; goto yzwHB; yzwHB: throw $WVwSN; goto JoYFU; JoYFU: } goto yQzFv; zI5zS: if ($HTQyg) { $HTQyg = $HTQyg . ':'; } goto nltu2; PrQH_: } public static function throwsIfEmpty($NLEz7, $HRxBW, $qHLCM = array()) { if (empty($HRxBW)) { goto fWv4p; qekg0: $WVwSN->param = $qHLCM; goto nX8mV; fWv4p: $WVwSN = new BizException($NLEz7); goto qekg0; nX8mV: throw $WVwSN; goto no7mE; no7mE: } } public static function throwsIfNotEmpty($NLEz7, $HRxBW, $qHLCM = array()) { if (!empty($HRxBW)) { goto We_os; We_os: $WVwSN = new BizException($NLEz7); goto R_CDh; qaSWo: throw $WVwSN; goto ctvu7; R_CDh: $WVwSN->param = $qHLCM; goto qaSWo; ctvu7: } } }