<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Exception; use ModStart\Core\Input\Response; class BizException extends \Exception { public static function throws($BDJuO) { throw new BizException($BDJuO); } public static function throwsIf($BDJuO, $eVURJ) { if ($eVURJ) { throw new BizException($BDJuO); } } public static function throwsIfResponseError($xCodt) { if (empty($xCodt)) { throw new BizException('Response Empty'); } if ($xCodt['code']) { throw new BizException($xCodt['msg']); } } public static function throwsIfEmpty($BDJuO, $fvYLI) { if (empty($fvYLI)) { throw new BizException($BDJuO); } } public static function throwsIfNotEmpty($BDJuO, $fvYLI) { if (!empty($fvYLI)) { throw new BizException($BDJuO); } } }