X Tutup
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 { /// /// The exception that is thrown when server-related issues occur. /// /// /// PostgreSQL errors (e.g. query SQL issues, constraint violations) are raised via /// 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). /// #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 } }
X Tutup