public class StreamCopyException extends IOException
IOException
together with information about the type of operation (read or write) that
failed.Modifier and Type | Field and Description |
---|---|
static int |
READ
Indicates that the wrapped exception was triggered while reading from the input stream
(or data source).
|
static int |
WRITE
Indicates that the wrapped exception was triggered while writing to the output stream
(or data sink).
|
Constructor and Description |
---|
StreamCopyException(int operation,
IOException cause)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getMessage() |
int |
getOperation()
Get information about the type of operation that fails.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static final int READ
public static final int WRITE
public StreamCopyException(int operation, IOException cause)
public int getOperation()
public String getMessage()
getMessage
in class Throwable
Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.