? IOExceptionList
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.apache.commons.io.IOExceptionList
- ????????:
Serializable
A IOException based on a list of Throwable causes.
The first exception in the list is used as this exception's cause and is accessible with the usual
Throwable.getCause()
while the complete list is accessible with getCauseList()
.
- ???????:
- 2.7
- ????:
-
?????
????????IOExceptionList
(String message, List<? extends Throwable> causeList) Creates a new exception caused by a list of exceptions.IOExceptionList
(List<? extends Throwable> causeList) Creates a new exception caused by a list of exceptions. -
????
??????????<T extends Throwable>
TgetCause
(int index) Gets the cause exception at the given index.<T extends Throwable>
TGets the cause exception at the given index.Gets the cause list.getCauseList
(Class<T> clazz) Works around Throwable and Generics, may fail at runtime depending on the argument value.
-
???????
-
IOExceptionList
Creates a new exception caused by a list of exceptions.- ??:
causeList
- a list of cause exceptions.
-
IOExceptionList
Creates a new exception caused by a list of exceptions.- ??:
message
- The detail message, seeThrowable.getMessage()
.causeList
- a list of cause exceptions.- ???????:
- 2.9.0
-
-
??????
-
getCause
Gets the cause exception at the given index.- ????:
T
- type of exception to return.- ??:
index
- index in the cause list.- ??:
- The list of causes.
-
getCause
Gets the cause exception at the given index.- ????:
T
- type of exception to return.- ??:
index
- index in the cause list.clazz
- type of exception to return.- ??:
- The list of causes.
-
getCauseList
Gets the cause list.- ????:
T
- type of exception to return.- ??:
- The list of causes.
-
getCauseList
Works around Throwable and Generics, may fail at runtime depending on the argument value.- ????:
T
- type of exception to return.- ??:
clazz
- the target type- ??:
- The list of causes.
-