[LoongArch64] Part-5:add loongarch support in some files for LoongArch64. (#21769)
[mono-project.git] / mcs / class / System.Data / System.Data.SqlClient / SqlException.platformnotsupported.cs
blob33b43d0aa6b6adf49417afe12a3f941f9d8e38b1
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 using System;
6 using System.Data.Common;
7 using System.Data.SqlClient;
8 using System.Runtime.Serialization;
10 namespace System.Data.SqlClient
12 public class SqlException : DbException
14 const string EXCEPTION_MESSAGE = "System.Data.SqlClient.SqlException is not supported on the current platform.";
16 internal bool _doNotReconnect;
18 static internal SqlException CreateException(SqlErrorCollection errorCollection, string serverVersion)
19 => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
21 static internal SqlException CreateException(SqlErrorCollection errorCollection, string serverVersion, SqlInternalConnectionTds internalConnection, Exception innerException = null)
22 => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
24 static internal SqlException CreateException(SqlErrorCollection errorCollection, string serverVersion, Guid conId, Exception innerException = null)
25 => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
27 SqlException () {}
29 public override void GetObjectData (SerializationInfo si, StreamingContext context)
30 => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
32 public byte Class
33 => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
35 public Guid ClientConnectionId
36 => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
38 public SqlErrorCollection Errors
39 => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
41 public int LineNumber
42 => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
44 public override string Message
45 => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
47 public int Number
48 => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
50 public string Procedure
51 => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
53 public string Server
54 => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
56 public override string Source
57 => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
59 public byte State
60 => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
62 internal SqlException InternalClone()
63 => throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);