summaryrefslogtreecommitdiff
path: root/src/vm/frameworkexceptionloader.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vm/frameworkexceptionloader.h')
-rw-r--r--src/vm/frameworkexceptionloader.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/vm/frameworkexceptionloader.h b/src/vm/frameworkexceptionloader.h
new file mode 100644
index 0000000000..4c81e4a84e
--- /dev/null
+++ b/src/vm/frameworkexceptionloader.h
@@ -0,0 +1,26 @@
+// 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.
+
+// Just the subset of functionality from the MscorlibBinder necessary for exceptions.
+#ifndef _FRAMEWORKEXCEPTIONLOADER_H_
+#define _FRAMEWORKEXCEPTIONLOADER_H_
+
+#include "runtimeexceptionkind.h"
+
+class MethodTable;
+
+// For loading exception types that are not defined in mscorlib.dll
+class FrameworkExceptionLoader
+{
+ public:
+ //
+ // Utilities for exceptions
+ //
+
+ static MethodTable *GetException(RuntimeExceptionKind kind);
+
+ static void GetExceptionName(RuntimeExceptionKind kind, SString & exceptionName);
+};
+
+#endif // _FRAMEWORKEXCEPTIONLOADER_H_