Updates referencesource to .NET 4.7
[mono-project.git] / mcs / class / referencesource / mscorlib / system / reflection / customattributeformatexception.cs
blob1d158db809d9cca566b2fde7ee97688a7470a8c5
1 // ==++==
2 //
3 // Copyright (c) Microsoft Corporation. All rights reserved.
4 //
5 // ==--==
6 ////////////////////////////////////////////////////////////////////////////////
7 ////////////////////////////////////////////////////////////////////////////////
8 //
9 // CustomAttributeFormatException is thrown when the binary format of a
10 //
11 // <OWNER>Microsoft</OWNER>
12 // custom attribute is invalid.
14 // <EMAIL>Author: darylo</EMAIL>
15 // Date: Microsoft 98
17 namespace System.Reflection {
18 using System;
19 using ApplicationException = System.ApplicationException;
20 using System.Runtime.Serialization;
21 [Serializable]
22 [System.Runtime.InteropServices.ComVisible(true)]
23 public class CustomAttributeFormatException : FormatException {
25 public CustomAttributeFormatException()
26 : base(Environment.GetResourceString("Arg_CustomAttributeFormatException")) {
27 SetErrorCode(__HResults.COR_E_CUSTOMATTRIBUTEFORMAT);
30 public CustomAttributeFormatException(String message) : base(message) {
31 SetErrorCode(__HResults.COR_E_CUSTOMATTRIBUTEFORMAT);
34 public CustomAttributeFormatException(String message, Exception inner) : base(message, inner) {
35 SetErrorCode(__HResults.COR_E_CUSTOMATTRIBUTEFORMAT);
38 protected CustomAttributeFormatException(SerializationInfo info, StreamingContext context) : base(info, context) {