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 /*=============================================================================
6 **
7 **
8 ** Purpose: The exception class for a misaligned access exception
9 **
10 =============================================================================*/
11 
12 using System.Runtime.Serialization;
13 
14 namespace System
15 {
16     [Serializable]
17     [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
18     public sealed class DataMisalignedException : SystemException
19     {
DataMisalignedException()20         public DataMisalignedException()
21             : base(SR.Arg_DataMisalignedException)
22         {
23             HResult = HResults.COR_E_DATAMISALIGNED;
24         }
25 
DataMisalignedException(String message)26         public DataMisalignedException(String message)
27             : base(message)
28         {
29             HResult = HResults.COR_E_DATAMISALIGNED;
30         }
31 
DataMisalignedException(String message, Exception innerException)32         public DataMisalignedException(String message, Exception innerException)
33             : base(message, innerException)
34         {
35             HResult = HResults.COR_E_DATAMISALIGNED;
36         }
37 
DataMisalignedException(SerializationInfo info, StreamingContext context)38         internal DataMisalignedException(SerializationInfo info, StreamingContext context) : base(info, context)
39         {
40         }
41     }
42 }
43