1 | // Licensed to the .NET Foundation under one or more agreements. |
2 | // The .NET Foundation licenses this file to you under the MIT license. |
3 | // See the LICENSE file in the project root for more information. |
4 | |
5 | // Just the subset of functionality from the MscorlibBinder necessary for exceptions. |
6 | #ifndef _FRAMEWORKEXCEPTIONLOADER_H_ |
7 | #define _FRAMEWORKEXCEPTIONLOADER_H_ |
8 | |
9 | #include "runtimeexceptionkind.h" |
10 | |
11 | class MethodTable; |
12 | |
13 | // For loading exception types that are not defined in mscorlib.dll |
14 | class FrameworkExceptionLoader |
15 | { |
16 | public: |
17 | // |
18 | // Utilities for exceptions |
19 | // |
20 | |
21 | static MethodTable *GetException(RuntimeExceptionKind kind); |
22 | |
23 | static void GetExceptionName(RuntimeExceptionKind kind, SString & exceptionName); |
24 | }; |
25 | |
26 | #endif // _FRAMEWORKEXCEPTIONLOADER_H_ |
27 | |