<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Exception; class BizException extends \Exception { public $param = array(); public static function throws($SzFqT, $zlK8N = array()) { goto QYW91; onK53: throw $Y5fnH; goto W2XMH; QYW91: $Y5fnH = new BizException($SzFqT); goto PN6l1; PN6l1: $Y5fnH->param = $zlK8N; goto onK53; W2XMH: } public static function throwsIf($SzFqT, $MgRLW, $zlK8N = array()) { if ($MgRLW) { goto LKYhR; LKYhR: $Y5fnH = new BizException($SzFqT); goto nyl2D; nyl2D: $Y5fnH->param = $zlK8N; goto jnENK; jnENK: throw $Y5fnH; goto iwOfh; iwOfh: } } public static function throwsIfResponseError($mf4Oy, $cxyYM = '', $zlK8N = array()) { goto GO5bf; ypoJO: if (empty($mf4Oy)) { goto bR_rt; bR_rt: $Y5fnH = new BizException($cxyYM . 'Response Empty'); goto c8plA; vi0sK: throw $Y5fnH; goto yyD0d; c8plA: $Y5fnH->param = $zlK8N; goto vi0sK; yyD0d: } goto m4c1c; m4c1c: if ($mf4Oy['code']) { goto kzYzV; CGkTp: throw $Y5fnH; goto fDHIJ; YdjHj: $Y5fnH->param = $zlK8N; goto CGkTp; kzYzV: $Y5fnH = new BizException($cxyYM . $mf4Oy['msg']); goto YdjHj; fDHIJ: } goto g4MyR; GO5bf: if ($cxyYM) { $cxyYM = $cxyYM . ':'; } goto ypoJO; g4MyR: } public static function throwsIfEmpty($SzFqT, $mC3Sg, $zlK8N = array()) { if (empty($mC3Sg)) { goto YRV28; lW8XV: throw $Y5fnH; goto xSNnW; FarM9: $Y5fnH->param = $zlK8N; goto lW8XV; YRV28: $Y5fnH = new BizException($SzFqT); goto FarM9; xSNnW: } } public static function throwsIfNotEmpty($SzFqT, $mC3Sg, $zlK8N = array()) { if (!empty($mC3Sg)) { goto VmRNj; KjmeS: throw $Y5fnH; goto CgdBp; VmRNj: $Y5fnH = new BizException($SzFqT); goto ADLTY; ADLTY: $Y5fnH->param = $zlK8N; goto KjmeS; CgdBp: } } }