Move portable thread pool to shared partition (dotnet/corert#7828)
[mono-project.git] / netcore / System.Private.CoreLib / shared / System / DataMisalignedException.cs
blob927abe0edc75886fa37d13eb446b2b17a3d11a67
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.
5 /*=============================================================================
6 **
7 **
8 ** Purpose: The exception class for a misaligned access exception
9 **
10 =============================================================================*/
12 using System.Runtime.Serialization;
14 namespace System
16 [Serializable]
17 [System.Runtime.CompilerServices.TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
18 public sealed class DataMisalignedException : SystemException
20 public DataMisalignedException()
21 : base(SR.Arg_DataMisalignedException)
23 HResult = HResults.COR_E_DATAMISALIGNED;
26 public DataMisalignedException(string? message)
27 : base(message)
29 HResult = HResults.COR_E_DATAMISALIGNED;
32 public DataMisalignedException(string? message, Exception? innerException)
33 : base(message, innerException)
35 HResult = HResults.COR_E_DATAMISALIGNED;
38 private DataMisalignedException(SerializationInfo info, StreamingContext context) : base(info, context)