/** * Throws a internal runtime error as a new exception. * * @param int $errno Error number. * @param string $errstr Error string. * @param string $errfile Error file. * @param int $errline Error line. */ public static function throwRuntimeError($errno, $errstr, $errfile, $errline) { $exception = new MOXMAN_Exception($errstr, $errno); $exception->setFile($errfile); $exception->setLine($errline); throw $exception; }