3 // Copyright (c) Microsoft Corporation. All rights reserved.
6 ////////////////////////////////////////////////////////////////////////////////
7 ////////////////////////////////////////////////////////////////////////////////
9 // CustomAttributeFormatException is thrown when the binary format of a
11 // <OWNER>Microsoft</OWNER>
12 // custom attribute is invalid.
14 // <EMAIL>Author: darylo</EMAIL>
17 namespace System
.Reflection
{
19 using ApplicationException
= System
.ApplicationException
;
20 using System
.Runtime
.Serialization
;
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
) {