Package org.apache.commons.io
Class IOIndexedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- org.apache.commons.io.IOIndexedException
-
- All Implemented Interfaces:
java.io.Serializable
public class IOIndexedException extends java.io.IOException
A IOException associated with a source index.- Since:
- 2.7
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IOIndexedException(int index, java.lang.Throwable cause)
Creates a new exception.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getIndex()
The index of this exception.protected static java.lang.String
toMessage(int index, java.lang.Throwable cause)
Converts input to a suitable String for exception message.
-
-
-
Method Detail
-
toMessage
protected static java.lang.String toMessage(int index, java.lang.Throwable cause)
Converts input to a suitable String for exception message.- Parameters:
index
- An index into a source collection.cause
- A cause.- Returns:
- A message.
-
getIndex
public int getIndex()
The index of this exception.- Returns:
- index of this exception.
-
-