<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Exception; class BizException extends \Exception { public $param = array(); public static function throws($x2rrW, $pmJAc = array()) { goto vb5N_; b5SQs: $GrUf4->param = $pmJAc; goto vTYD2; vb5N_: $GrUf4 = new BizException($x2rrW); goto b5SQs; vTYD2: throw $GrUf4; goto xumYH; xumYH: } public static function throwsIf($x2rrW, $IpwOR, $pmJAc = array()) { if ($IpwOR) { goto RHSA0; VGXjg: throw $GrUf4; goto Evozy; CSb1H: $GrUf4->param = $pmJAc; goto VGXjg; RHSA0: $GrUf4 = new BizException($x2rrW); goto CSb1H; Evozy: } } public static function throwsIfResponseError($Lq983, $F1pdf = '', $pmJAc = array()) { goto vh3sv; j5lNE: if (empty($Lq983)) { goto gVpEw; HhpnG: $GrUf4->param = $pmJAc; goto EzilQ; gVpEw: $GrUf4 = new BizException($F1pdf . 'Response Empty'); goto HhpnG; EzilQ: throw $GrUf4; goto q_zak; q_zak: } goto JaSXi; JaSXi: if ($Lq983['code']) { goto ZT8Nx; f0zTz: throw $GrUf4; goto hCjee; ZT8Nx: $GrUf4 = new BizException($F1pdf . $Lq983['msg']); goto YTLlk; YTLlk: $GrUf4->param = $pmJAc; goto f0zTz; hCjee: } goto OLmO8; vh3sv: if ($F1pdf) { $F1pdf = $F1pdf . ':'; } goto j5lNE; OLmO8: } public static function throwsIfEmpty($x2rrW, $wbzFy, $pmJAc = array()) { if (empty($wbzFy)) { goto d7ozu; VdkXv: $GrUf4->param = $pmJAc; goto SF4hK; d7ozu: $GrUf4 = new BizException($x2rrW); goto VdkXv; SF4hK: throw $GrUf4; goto nj0ie; nj0ie: } } public static function throwsIfNotEmpty($x2rrW, $wbzFy, $pmJAc = array()) { if (!empty($wbzFy)) { goto VFzUZ; EI0ED: throw $GrUf4; goto wLtXW; VFzUZ: $GrUf4 = new BizException($x2rrW); goto uM2AJ; uM2AJ: $GrUf4->param = $pmJAc; goto EI0ED; wLtXW: } } }