Search Results for

    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
    Object
    Exception
    NpgsqlSafeReadException
    Implements
    ISerializable
    Inherited Members
    Exception.GetObjectData(SerializationInfo, StreamingContext)
    Exception.GetType()
    Exception.ToString()
    Exception.Data
    Exception.HelpLink
    Exception.HResult
    Exception.InnerException
    Exception.Message
    Exception.Source
    Exception.StackTrace
    Exception.TargetSite
    Exception.SerializeObjectState
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Namespace: Npgsql.TypeHandling
    Assembly: Npgsql.dll
    Syntax
    public class NpgsqlSafeReadException : Exception, ISerializable

    Constructors

    NpgsqlSafeReadException(Exception)

    Creates an instance of NpgsqlSafeReadException.

    Declaration
    public NpgsqlSafeReadException(Exception originalException)
    Parameters
    Type Name Description
    Exception originalException

    Properties

    OriginalException

    Gets the Exception instance that caused the current exception.

    Declaration
    public Exception OriginalException { get; }
    Property Value
    Type Description
    Exception

    Methods

    GetBaseException()

    Declaration
    public override Exception GetBaseException()
    Returns
    Type Description
    Exception
    Overrides
    Exception.GetBaseException()

    Implements

    System.Runtime.Serialization.ISerializable
    In This Article
    Back to top © Copyright 2022 The Npgsql Development Team