/** * * @param string $typeName * @throws TypeLoaderErrorException */ public static function load($typeName) { try { self::requireScript(self::getFilePathOfTypeWihtoutCheck($typeName), $typeName); return true; } catch (TypeNotFoundException $e) { $lutp = N2N::getLastUserTracePoint(); self::$latestException = new TypeLoaderErrorException($typeName, $e->getMessage(), 0, E_ERROR, $lutp['file'], $lutp['line']); return false; } /*catch (\Exception $e) { self::$exceptionHandler->handleThrowable($e); die(); }*/ return false; }