<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Exception; class BizException extends \Exception { public $param = array(); public static function throws($UVkAh, $oK4I3 = array()) { goto Ml2T_; UrEF7: throw $xpJqz; goto gMK73; Ml2T_: $xpJqz = new BizException($UVkAh); goto jvWnI; jvWnI: $xpJqz->param = $oK4I3; goto UrEF7; gMK73: } public static function throwsIf($UVkAh, $w4d2h, $oK4I3 = array()) { if ($w4d2h) { goto d5kIl; nYTLx: $xpJqz->param = $oK4I3; goto LXTkW; LXTkW: throw $xpJqz; goto g4gOI; d5kIl: $xpJqz = new BizException($UVkAh); goto nYTLx; g4gOI: } } public static function throwsIfResponseError($CqM8X, $sGiaY = '', $oK4I3 = array()) { goto OC2lY; OC2lY: if ($sGiaY) { $sGiaY = $sGiaY . ':'; } goto iMGj1; j5Wxp: if ($CqM8X['code']) { goto Rwvhk; Rwvhk: $xpJqz = new BizException($sGiaY . $CqM8X['msg']); goto QFiVZ; z5BCM: throw $xpJqz; goto rGVDP; QFiVZ: $xpJqz->param = $oK4I3; goto z5BCM; rGVDP: } goto YWcPl; iMGj1: if (empty($CqM8X)) { goto bXcT3; orbYm: throw $xpJqz; goto YxEZQ; bXcT3: $xpJqz = new BizException($sGiaY . 'Response Empty'); goto FeIW6; FeIW6: $xpJqz->param = $oK4I3; goto orbYm; YxEZQ: } goto j5Wxp; YWcPl: } public static function throwsIfEmpty($UVkAh, $elawQ, $oK4I3 = array()) { if (empty($elawQ)) { goto VjoML; UpBFH: $xpJqz->param = $oK4I3; goto B_NWa; B_NWa: throw $xpJqz; goto k11M7; VjoML: $xpJqz = new BizException($UVkAh); goto UpBFH; k11M7: } } public static function throwsIfNotEmpty($UVkAh, $elawQ, $oK4I3 = array()) { if (!empty($elawQ)) { goto YOUEj; dt4PM: $xpJqz->param = $oK4I3; goto j9aBN; j9aBN: throw $xpJqz; goto UMwR8; YOUEj: $xpJqz = new BizException($UVkAh); goto dt4PM; UMwR8: } } }