Class StreamReadException

Class StreamReadException

Namespace: Aspose.Imaging.CoreExceptions
Assembly: Aspose.Imaging.dll (25.7.0)

The stream reading exception. Caused when stream reading failed due to incorrect offset and bytes count request.

public class StreamReadException : FrameworkException, ISerializable
{
    public StreamReadException() { }
    public StreamReadException(string message) : base(message) { }
    public StreamReadException(string message, Exception innerException) : base(message, innerException) { }
    protected StreamReadException(SerializationInfo info, StreamingContext context) : base(info, context) { }
}

Inheritance

object Exception FrameworkException StreamReadException

Implements

ISerializable

Inherited Members

Exception.GetBaseException() , Exception.ToString() , Exception.GetType() , Exception.TargetSite , Exception.Message , Exception.Data , Exception.InnerException , Exception.HelpLink , Exception.Source , Exception.HResult , Exception.StackTrace , Exception.SerializeObjectState , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

StreamReadException(string)

Initializes a new instance of the Aspose.Imaging.CoreExceptions.StreamReadException class.

public StreamReadException(string message)
   {
      base(message);
   }

Parameters

message string

The message.

StreamReadException(string, Exception)

Initializes a new instance of the Aspose.Imaging.CoreExceptions.StreamReadException class.

public StreamReadException(string message, Exception innerException)
   {
      base(message, innerException);
   }

Parameters

message string

The message.

innerException Exception

The inner exception.

StreamReadException(string, Exception, int, int)

Initializes a new instance of the Aspose.Imaging.CoreExceptions.StreamReadException class.

public StreamReadException(string message, Exception innerException, int expectedReadCount, int actualReadCount)
   {
      base.Message = message;
      InnerException = innerException;
      ExpectedReadCount = expectedReadCount;
      ActualReadCount = actualReadCount;
   }

Parameters

message string

The message.

innerException Exception

The inner exception.

expectedReadCount int

The expected read count.

actualReadCount int

The actual read count.

StreamReadException(string, int, int)

Initializes a new instance of the Aspose.Imaging.CoreExceptions.StreamReadException class.

public StreamReadException(string message, int expectedReadCount, int actualReadCount)
   {
      base(message);
      _expectedReadCount = expectedReadCount;
      _actualReadCount = actualReadCount;
   }

Parameters

message string

The message.

expectedReadCount int

The expected read count.

actualReadCount int

The actual read count.

Properties

ActualReadCount

Gets the actual read bytes count.

public int ActualReadCount
   {
      get;
   }

Property Value

int

ExpectedReadCount

Gets the expected read bytes count.

public int ExpectedReadCount
   {
      get;
   }

Property Value

int

 English