public class PartialReadException extends IOException
Throwable.getCause()
.Modifier and Type | Class and Description |
---|---|
static class |
PartialReadException.CauseType
Possible causes of
PartialReadException . |
Constructor and Description |
---|
PartialReadException(int bytesWanted,
int bytesRead,
PartialReadException.CauseType causeType,
Throwable cause)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getBytesRead() |
int |
getBytesWanted() |
PartialReadException.CauseType |
getCauseType() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public PartialReadException(int bytesWanted, int bytesRead, PartialReadException.CauseType causeType, Throwable cause)
bytesWanted
- number of bytes requested by the callerbytesRead
- number of bytes actually read so far when the exception occurscauseType
- type of causecause
- the causepublic int getBytesRead()
public int getBytesWanted()
public PartialReadException.CauseType getCauseType()
Copyright © 2023. All Rights Reserved.