<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Exception; class BizException extends \Exception { public $param = array(); public static function throws($N0Z_W, $AXgEz = array()) { goto dDhgq; dDhgq: $SwVsw = new BizException($N0Z_W); goto FbuIz; AxAT8: throw $SwVsw; goto BbJCD; FbuIz: $SwVsw->param = $AXgEz; goto AxAT8; BbJCD: } public static function throwsIf($N0Z_W, $b43W9, $AXgEz = array()) { if ($b43W9) { goto EAqbp; EAqbp: $SwVsw = new BizException($N0Z_W); goto jeUrz; NxtIk: throw $SwVsw; goto apTp5; jeUrz: $SwVsw->param = $AXgEz; goto NxtIk; apTp5: } } public static function throwsIfEmpty($N0Z_W, $Akaz1, $AXgEz = array()) { if (empty($Akaz1)) { goto MX6c4; ItdT9: throw $SwVsw; goto D_Rge; MX6c4: $SwVsw = new BizException($N0Z_W); goto aa_1F; aa_1F: $SwVsw->param = $AXgEz; goto ItdT9; D_Rge: } } public static function throwsIfNotEmpty($N0Z_W, $Akaz1, $AXgEz = array()) { if (!empty($Akaz1)) { goto xm1QM; vImhw: $SwVsw->param = $AXgEz; goto yu3sG; xm1QM: $SwVsw = new BizException($N0Z_W); goto vImhw; yu3sG: throw $SwVsw; goto WrpYz; WrpYz: } } public static function throwsIfResponseError($YD5di, $BSuqj = '', $AXgEz = array()) { goto U5KxP; U5KxP: if ($BSuqj) { $BSuqj = $BSuqj . ':'; } goto g7Y21; wBzL9: if ($YD5di['code']) { goto rQpkd; rQpkd: $SwVsw = new BizException($BSuqj . $YD5di['msg']); goto EBPNQ; EBPNQ: $SwVsw->param = $AXgEz; goto DD0U6; DD0U6: throw $SwVsw; goto BqSZg; BqSZg: } goto Wfs_I; g7Y21: if (empty($YD5di)) { goto USeLJ; USeLJ: $SwVsw = new BizException($BSuqj . 'Response Empty'); goto rr5nH; jd7xH: throw $SwVsw; goto Viv1b; rr5nH: $SwVsw->param = $AXgEz; goto jd7xH; Viv1b: } goto wBzL9; Wfs_I: } }