public class MultiIOException
extends java.io.IOException
Note: unfortunately, we can't use Java 7's addSuppressed for this purpose as Reactive4Java is aimed at Java 6.
Modifier and Type | Field and Description |
---|---|
protected java.util.List<java.io.IOException> |
innerExceptions
The inner exceptions.
|
Constructor and Description |
---|
MultiIOException()
Default constructor with no message or cause.
|
MultiIOException(java.lang.String message)
Constructor with the error message.
|
MultiIOException(java.lang.String message,
java.lang.Throwable cause)
Constructor with the message and cause.
|
MultiIOException(java.lang.Throwable cause)
Constructor with the cause.
|
Modifier and Type | Method and Description |
---|---|
void |
add(java.io.IOException ex)
Adds an exception to the inner exception list.
|
static MultiIOException |
createOrAdd(MultiIOException multi,
java.io.IOException ex)
Adds the exception to the given MultiIOException.
|
java.util.List<java.io.IOException> |
innerExceptions() |
protected final java.util.List<java.io.IOException> innerExceptions
public MultiIOException()
public MultiIOException(java.lang.String message)
message
- the messagepublic MultiIOException(java.lang.Throwable cause)
cause
- the causepublic MultiIOException(java.lang.String message, java.lang.Throwable cause)
message
- the messagecause
- the causepublic void add(java.io.IOException ex)
ex
- the exception to addpublic java.util.List<java.io.IOException> innerExceptions()
public static MultiIOException createOrAdd(MultiIOException multi, java.io.IOException ex)
multi
- the target MultiIOException. If null, a new instance is created.ex
- the exception to add