public class CopyStreamException extends IOException
Util
,
Serialized FormConstructor and Description |
---|
CopyStreamException(String message,
long bytesTransferred,
IOException exception)
Creates a new CopyStreamException instance.
|
Modifier and Type | Method and Description |
---|---|
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.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public CopyStreamException(String message, long bytesTransferred, 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 IOException getIOException()
Copyright © 2001–2016 The Apache Software Foundation. All rights reserved.