forked from npgsql/npgsql
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNpgsqlException.cs
More file actions
42 lines (38 loc) · 1.23 KB
/
NpgsqlException.cs
File metadata and controls
42 lines (38 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using System;
using System.Collections.Generic;
using System.Data.Common;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Npgsql.BackendMessages;
#if NET45 || NET451
using System.Runtime.Serialization;
#endif
namespace Npgsql
{
/// <summary>
/// The exception that is thrown when server-related issues occur.
/// </summary>
/// <remarks>
/// PostgreSQL errors (e.g. query SQL issues, constraint violations) are raised via
/// <see cref="PostgresException"/> which is a subclass of this class.
/// Purely Npgsql-related issues which aren't related to the server will be raised
/// via the standard CLR exceptions (e.g. ArgumentException).
/// </remarks>
#if NET45 || NET451
[Serializable]
#endif
public class NpgsqlException : DbException
{
internal NpgsqlException() {}
internal NpgsqlException(string message, Exception innerException)
: base(message, innerException) {}
internal NpgsqlException(string message)
: base(message) { }
#region Serialization
#if NET45 || NET451
internal NpgsqlException(SerializationInfo info, StreamingContext context) : base(info, context) {}
#endif
#endregion
}
}