Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/plugin/PluginDebug.h

Issue 5137721374801920: Issue #1173 - Default behavior for catch-all blocks
Patch Set: add arguments for templates, add logging default function Created March 2, 2015, 5:02 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/plugin/PluginDebug.h
===================================================================
--- a/src/plugin/PluginDebug.h
+++ b/src/plugin/PluginDebug.h
@@ -18,6 +18,9 @@
#ifndef _PLUGIN_DEBUG_H_
#define _PLUGIN_DEBUG_H_
+#define PLUGIN_ERROR_ENTRY_POINT 99
+#define PLUGIN_ERROR_ENTRY_POINT_CATCHALL_EXCEPTION 1
Oleksandr 2015/03/05 07:18:55 Shouldn't this should be in PluginErrorCodes.h?
Eric 2015/03/05 14:58:04 Well, I would prefer to eliminate PluginErrorCodes
+
class CPluginDebug
{
@@ -29,6 +32,7 @@
static void Debug(const std::wstring& text, DWORD processId=0, DWORD threadId=0);
static void DebugException(const std::exception& ex);
static void DebugErrorCode(DWORD errorCode, const std::string& error, DWORD processId=0, DWORD threadId=0);
+ static void DebugOrdinaryException(const std::exception& ex, int errorId, int errorSubid, const std::string& description);
#endif
#if (defined ENABLE_DEBUG_RESULT)
@@ -43,5 +47,7 @@
#endif
};
+void EntryPointExceptionDefault(std::string name);
+
#endif // _PLUGIN_DEBUG_H_

Powered by Google App Engine
This is Rietveld