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