MultiCauseIOException

public class MultiCauseIOException extends IOException

An IOException that aggregates multiple underlying IOException causes.

This class is useful when multiple I/O operations may fail independently, and you want to capture all of their exceptions together rather than only the first.

Each cause can be added using add, and later retrieved via getCauses.

Author

Michael Vorburger

Constructors

Link copied to clipboard
public void MultiCauseIOException()
Creates a new, initially empty MultiCauseIOException.

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
public void add(String message, IOException cause)
Add a Cause.
Link copied to clipboard
public final synchronized void addSuppressed(Throwable exception)
Link copied to clipboard
public synchronized Throwable fillInStackTrace()
Link copied to clipboard
public synchronized Throwable getCause()
public synchronized Throwable getCause()
Link copied to clipboard
Returns the list of all underlying IOException instances that caused this exception.
Link copied to clipboard
Link copied to clipboard
public String getMessage()
Link copied to clipboard
public final synchronized Array<Throwable> getSuppressed()
Link copied to clipboard
public synchronized Throwable initCause(Throwable cause)
Link copied to clipboard
public void printStackTrace(PrintStream s)
public void printStackTrace(PrintWriter s)
public void printStackTrace()
Link copied to clipboard
public void setStackTrace(Array<StackTraceElement> stackTrace)
public void setStackTrace(Array<StackTraceElement> stackTrace)
Link copied to clipboard
public String toString()