<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Exception; class BizException extends \Exception { public $param = array(); public static function throws($wx435, $mattM = array()) { goto HJpEl; HJpEl: $Sgh1N = new BizException($wx435); goto YUbUa; YUbUa: $Sgh1N->param = $mattM; goto RE2yw; RE2yw: throw $Sgh1N; goto VJE6e; VJE6e: } public static function throwsIf($wx435, $xJZLL, $mattM = array()) { if ($xJZLL) { goto c2Cbc; CXADc: $Sgh1N->param = $mattM; goto ZrTc7; c2Cbc: $Sgh1N = new BizException($wx435); goto CXADc; ZrTc7: throw $Sgh1N; goto tqE7k; tqE7k: } } public static function throwsIfEmpty($wx435, $K7BoD, $mattM = array()) { if (empty($K7BoD)) { goto cdQt_; GpjDG: $Sgh1N->param = $mattM; goto AGrro; cdQt_: $Sgh1N = new BizException($wx435); goto GpjDG; AGrro: throw $Sgh1N; goto EkqHO; EkqHO: } } public static function throwsIfNotEmpty($wx435, $K7BoD, $mattM = array()) { if (!empty($K7BoD)) { goto EBoVG; reKou: throw $Sgh1N; goto PejaL; MFM8Z: $Sgh1N->param = $mattM; goto reKou; EBoVG: $Sgh1N = new BizException($wx435); goto MFM8Z; PejaL: } } public static function throwsIfResponseError($aziFu, $hyTx0 = '', $mattM = array()) { goto CDiXF; CDiXF: if ($hyTx0) { $hyTx0 = $hyTx0 . ':'; } goto gQ3q4; N0ilM: if ($aziFu['code']) { goto rsCqV; Bo_LD: $Sgh1N->param = $mattM; goto Rg2tr; rsCqV: $Sgh1N = new BizException($hyTx0 . $aziFu['msg']); goto Bo_LD; Rg2tr: throw $Sgh1N; goto MCU_Q; MCU_Q: } goto yxlLf; gQ3q4: if (empty($aziFu)) { goto PpwYL; FpGdJ: $Sgh1N->param = $mattM; goto V6RAQ; PpwYL: $Sgh1N = new BizException($hyTx0 . 'Response Empty'); goto FpGdJ; V6RAQ: throw $Sgh1N; goto TzfIi; TzfIi: } goto N0ilM; yxlLf: } }