Show / Hide Table of Contents

Class NpgsqlSafeReadException

Can be thrown by readers to indicate that interpreting the value failed, but the value was read wholly and it is safe to continue reading. Any other exception is assumed to leave the buffer in an unknown position, losing protocol sync and therefore setting the connector to state Broken. Note that an inner exception is mandatory, and will get thrown to the user instead of the NpgsqlSafeReadException.

Inheritance
System.Object
System.Exception
NpgsqlSafeReadException
Implements
System.Runtime.Serialization.ISerializable
System.Runtime.InteropServices._Exception
Inherited Members
System.Exception.GetBaseException()
System.Exception.ToString()
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Exception.GetType()
System.Exception.Message
System.Exception.Data
System.Exception.InnerException
System.Exception.TargetSite
System.Exception.StackTrace
System.Exception.HelpLink
System.Exception.Source
System.Exception.HResult
System.Exception.SerializeObjectState
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
Namespace: Npgsql.TypeHandling
Assembly: Npgsql.dll
Syntax
public class NpgsqlSafeReadException : Exception, ISerializable, _Exception

Constructors

NpgsqlSafeReadException(Exception)

Creates an instance of NpgsqlSafeReadException.

Declaration
public NpgsqlSafeReadException(Exception innerException)
Parameters
Type Name Description
System.Exception innerException

Implements

System.Runtime.Serialization.ISerializable
System.Runtime.InteropServices._Exception
Back to top Generated by DocFX