summaryrefslogtreecommitdiff
path: root/src/inc/corexcep.h
diff options
context:
space:
mode:
authorJiyoung Yun <jy910.yun@samsung.com>2016-11-23 10:09:09 (GMT)
committerJiyoung Yun <jy910.yun@samsung.com>2016-11-23 10:09:09 (GMT)
commit4b4aad7217d3292650e77eec2cf4c198ea9c3b4b (patch)
tree98110734c91668dfdbb126fcc0e15ddbd93738ca /src/inc/corexcep.h
parentfa45f57ed55137c75ac870356a1b8f76c84b229c (diff)
downloadcoreclr-4b4aad7217d3292650e77eec2cf4c198ea9c3b4b.zip
coreclr-4b4aad7217d3292650e77eec2cf4c198ea9c3b4b.tar.gz
coreclr-4b4aad7217d3292650e77eec2cf4c198ea9c3b4b.tar.bz2
Imported Upstream version 1.1.0upstream/1.1.0
Diffstat (limited to 'src/inc/corexcep.h')
-rw-r--r--src/inc/corexcep.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/inc/corexcep.h b/src/inc/corexcep.h
new file mode 100644
index 0000000..f1bed3e
--- /dev/null
+++ b/src/inc/corexcep.h
@@ -0,0 +1,42 @@
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for more information.
+
+/*********************************************************************
+ ** **
+ ** CorExcep.h - lists the exception codes used by the CLR. **
+ ** **
+ *********************************************************************/
+
+
+#ifndef __COREXCEP_H__
+#define __COREXCEP_H__
+
+// All COM+ exceptions are expressed as a RaiseException with this exception
+// code. If you change this value, you must also change
+// mscorlib\src\system\Exception.cs's _COMPlusExceptionCode value.
+
+#define EXCEPTION_MSVC 0xe06d7363 // 0xe0000000 | 'msc'
+
+#define EXCEPTION_COMPLUS 0xe0434352 // 0xe0000000 | 'CCR'
+
+#define EXCEPTION_HIJACK 0xe0434f4e // 0xe0000000 | 'COM'+1
+
+#ifdef FEATURE_STACK_PROBE
+#define EXCEPTION_SOFTSO 0xe053534f // 0xe0000000 | 'SSO'
+ // We can not throw internal C++ exception through managed frame.
+ // At boundary, we will raise an exception with this error code
+#endif
+
+#if defined(_DEBUG)
+#define EXCEPTION_INTERNAL_ASSERT 0xe0584d4e // 0xe0000000 | 'XMN'
+ // An internal Assert will raise this exception when the config
+ // value "RaiseExceptionOnAssert" si specified. This is used in
+ // stress to facilitate failure triaging.
+#endif
+
+// This is the exception code to report SetupThread failure to caller of reverse pinvoke
+// It is misleading to use our COM+ exception code, since this is not a managed exception.
+// In the end, we picked e0455858 (EXX).
+#define EXCEPTION_EXX 0xe0455858 // 0xe0000000 | 'EXX'
+#endif // __COREXCEP_H__