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.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 originalException)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | originalException |
Properties
OriginalException
Gets the Exception instance that caused the current exception.
Declaration
public Exception OriginalException { get; }
Property Value
Type | Description |
---|---|
System.Exception |
Methods
GetBaseException()
Declaration
public override Exception GetBaseException()
Returns
Type | Description |
---|---|
System.Exception |
Overrides
System.Exception.GetBaseException()
Implements
System.Runtime.Serialization.ISerializable
System.Runtime.InteropServices._Exception