<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Exception; use ModStart\Core\Input\Response; class ResultException extends \Exception { public static function throwsIfFail($f3Nqc) { if (Response::isError($f3Nqc)) { throw new ResultException($f3Nqc['msg']); } } public static function throwsIf($NLEz7, $oVmwo) { if ($oVmwo) { throw new ResultException($NLEz7); } } }