public class CopyStreamException
extends java.io.IOException
Util
,
Serialized FormModifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
private long |
totalBytesTransferred |
Constructor and Description |
---|
CopyStreamException(java.lang.String message,
long bytesTransferred,
java.io.IOException exception)
Creates a new CopyStreamException instance.
|
Modifier and Type | Method and Description |
---|---|
java.io.IOException |
getIOException()
Returns the IOException responsible for the failure of a copy operation.
|
long |
getTotalBytesTransferred()
Returns the total number of bytes confirmed to have
been transferred by a failed copy operation.
|
private static final long serialVersionUID
private final long totalBytesTransferred
public CopyStreamException(java.lang.String message, long bytesTransferred, java.io.IOException exception)
message
- A message describing the error.bytesTransferred
- The total number of bytes transferred before
an exception was thrown in a copy operation.exception
- The IOException thrown during a copy operation.public long getTotalBytesTransferred()
public java.io.IOException getIOException()