StreamReadException

Inheritance: java.lang.Object, java.lang.Throwable, java.lang.Exception, java.lang.RuntimeException, com.aspose.ms.System.Exception, com.aspose.psd.coreexceptions.FrameworkException

public class StreamReadException extends FrameworkException

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

Constructors

ConstructorDescription
StreamReadException(String message)Initializes a new instance of the StreamReadException class.
StreamReadException(String message, Throwable innerException)Initializes a new instance of the StreamReadException class.
StreamReadException(String message, Throwable innerException, int expectedReadCount, int actualReadCount)Initializes a new instance of the StreamReadException class.
StreamReadException(String message, int expectedReadCount, int actualReadCount)Initializes a new instance of the StreamReadException class.

Methods

MethodDescription
addSuppressed(Throwable arg0)
equals(Object arg0)
fillInStackTrace()
getActualReadCount()Gets the actual read bytes count.
getCause()
getClass()
getExpectedReadCount()Gets the expected read bytes count.
getInnerException()
getLocalizedMessage()
getMessage()
getStackTrace()
getSuppressed()
getType()
hashCode()
initCause(Throwable arg0)
notify()
notifyAll()
printStackTrace()
printStackTrace(PrintStream arg0)
printStackTrace(PrintWriter arg0)
setStackTrace(StackTraceElement[] arg0)
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

StreamReadException(String message)

public StreamReadException(String message)

Initializes a new instance of the StreamReadException class.

Parameters:

ParameterTypeDescription
messagejava.lang.StringThe message.

StreamReadException(String message, Throwable innerException)

public StreamReadException(String message, Throwable innerException)

Initializes a new instance of the StreamReadException class.

Parameters:

ParameterTypeDescription
messagejava.lang.StringThe message.
innerExceptionjava.lang.ThrowableThe inner exception.

StreamReadException(String message, Throwable innerException, int expectedReadCount, int actualReadCount)

public StreamReadException(String message, Throwable innerException, int expectedReadCount, int actualReadCount)

Initializes a new instance of the StreamReadException class.

Parameters:

ParameterTypeDescription
messagejava.lang.StringThe message.
innerExceptionjava.lang.ThrowableThe inner exception.
expectedReadCountintThe expected read count.
actualReadCountintThe actual read count.

StreamReadException(String message, int expectedReadCount, int actualReadCount)

public StreamReadException(String message, int expectedReadCount, int actualReadCount)

Initializes a new instance of the StreamReadException class.

Parameters:

ParameterTypeDescription
messagejava.lang.StringThe message.
expectedReadCountintThe expected read count.
actualReadCountintThe actual read count.

addSuppressed(Throwable arg0)

public final synchronized void addSuppressed(Throwable arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Throwable

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

fillInStackTrace()

public synchronized Throwable fillInStackTrace()

Returns: java.lang.Throwable

getActualReadCount()

public int getActualReadCount()

Gets the actual read bytes count.

Returns: int - The actual read bytes count.

getCause()

public synchronized Throwable getCause()

Returns: java.lang.Throwable

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getExpectedReadCount()

public int getExpectedReadCount()

Gets the expected read bytes count.

Returns: int - The expected read bytes count.

getInnerException()

public Throwable getInnerException()

Returns: java.lang.Throwable

getLocalizedMessage()

public String getLocalizedMessage()

Returns: java.lang.String

getMessage()

public String getMessage()

Returns: java.lang.String

getStackTrace()

public StackTraceElement[] getStackTrace()

Returns: java.lang.StackTraceElement[]

getSuppressed()

public final synchronized Throwable[] getSuppressed()

Returns: java.lang.Throwable[]

getType()

public System.Type getType()

Returns: com.aspose.ms.System.Type

hashCode()

public native int hashCode()

Returns: int

initCause(Throwable arg0)

public synchronized Throwable initCause(Throwable arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Throwable

Returns: java.lang.Throwable

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

printStackTrace()

public void printStackTrace()

printStackTrace(PrintStream arg0)

public void printStackTrace(PrintStream arg0)

Parameters:

ParameterTypeDescription
arg0java.io.PrintStream

printStackTrace(PrintWriter arg0)

public void printStackTrace(PrintWriter arg0)

Parameters:

ParameterTypeDescription
arg0java.io.PrintWriter

setStackTrace(StackTraceElement[] arg0)

public void setStackTrace(StackTraceElement[] arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.StackTraceElement[]

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int