Index: ps/trunk/source/gui/CGUI.h =================================================================== --- ps/trunk/source/gui/CGUI.h +++ ps/trunk/source/gui/CGUI.h @@ -47,8 +47,6 @@ /** * The main object that represents a whole GUI page. - * - * No interfacial functions throws. */ class CGUI { Index: ps/trunk/source/gui/CGUI.cpp =================================================================== --- ps/trunk/source/gui/CGUI.cpp +++ ps/trunk/source/gui/CGUI.cpp @@ -891,14 +891,7 @@ if (!file.empty()) { Paths.insert(file); - try - { - m_ScriptInterface->LoadGlobalScriptFile(file); - } - catch (PSERROR_Scripting& e) - { - LOGERROR("GUI: Error executing script %s: %s", utf8_from_wstring(file), e.what()); - } + m_ScriptInterface->LoadGlobalScriptFile(file); } // If it has a directory attribute, read all JS files in that directory @@ -911,28 +904,13 @@ { // Only load new files (so when the insert succeeds) if (Paths.insert(path).second) - try - { - m_ScriptInterface->LoadGlobalScriptFile(path); - } - catch (PSERROR_Scripting& e) - { - LOGERROR("GUI: Error executing script %s: %s", path.string8(), e.what()); - } + m_ScriptInterface->LoadGlobalScriptFile(path); } } - // Execute inline scripts - try - { - CStr code(Element.GetText()); - if (!code.empty()) - m_ScriptInterface->LoadGlobalScript(L"Some XML file", code.FromUTF8()); - } - catch (PSERROR_Scripting& e) - { - LOGERROR("GUI: Error executing inline script: %s", e.what()); - } + CStr code(Element.GetText()); + if (!code.empty()) + m_ScriptInterface->LoadGlobalScript(L"Some XML file", code.FromUTF8()); } void CGUI::Xeromyces_ReadSprite(XMBElement Element, CXeromyces* pFile) Index: ps/trunk/source/gui/ObjectBases/IGUIObject.h =================================================================== --- ps/trunk/source/gui/ObjectBases/IGUIObject.h +++ ps/trunk/source/gui/ObjectBases/IGUIObject.h @@ -280,11 +280,6 @@ protected: /** * Draws the object. - * - * @throws PSERROR if any. But this will mostlikely be - * very rare since if an object is drawn unsuccessfully - * it'll probably only output in the Error log, and not - * disrupt the whole GUI drawing. */ virtual void Draw() = 0;