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