You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2019/08/09 21:14:14 UTC
[commons-io] 05/06: Javadoc.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-io.git
commit d4f1fdd64ba8d7f744388f7fa8fc46c9deaa7bcb
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Aug 9 14:17:45 2019 -0400
Javadoc.
---
src/main/java/org/apache/commons/io/IOIndexedException.java | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/main/java/org/apache/commons/io/IOIndexedException.java b/src/main/java/org/apache/commons/io/IOIndexedException.java
index 635c9ad..7b7e1c1 100644
--- a/src/main/java/org/apache/commons/io/IOIndexedException.java
+++ b/src/main/java/org/apache/commons/io/IOIndexedException.java
@@ -40,6 +40,13 @@ public class IOIndexedException extends IOException {
this.index = index;
}
+ /**
+ * Converts input to a suitable Stirng for exception message.
+ *
+ * @param index An index into a source collection.
+ * @param cause A cause.
+ * @return A message.
+ */
protected static String toMessage(final int index, final Throwable cause) {
// Letting index be any int
final String unspecified = "Null";