<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Exception; class BizException extends \Exception { public static function throws($XKiRP) { throw new BizException($XKiRP); } public static function throwsIf($XKiRP, $t4qnT) { if ($t4qnT) { throw new BizException($XKiRP); } } public static function throwsIfResponseError($i1_1k, $b2156 = '') { goto xNNAn; vaL_g: if ($i1_1k['code']) { throw new BizException($b2156 . $i1_1k['msg']); } goto enkVu; aHeh0: if (empty($i1_1k)) { throw new BizException($b2156 . 'Response Empty'); } goto vaL_g; xNNAn: if ($b2156) { $b2156 = $b2156 . ':'; } goto aHeh0; enkVu: } public static function throwsIfEmpty($XKiRP, $U2nFZ) { if (empty($U2nFZ)) { throw new BizException($XKiRP); } } public static function throwsIfNotEmpty($XKiRP, $U2nFZ) { if (!empty($U2nFZ)) { throw new BizException($XKiRP); } } }