Package org.eclipse.jetty.util
Class MultiException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.eclipse.jetty.util.MultiException
- All Implemented Interfaces:
Serializable
Deprecated.
The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
Wraps multiple exceptions.
Allows multiple exceptions to be thrown as a single exception.
The MultiException itself should not be thrown instead one of the
ifExceptionThrow* methods should be called instead.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.getThrowable(int i) Deprecated.Deprecated.voidDeprecated.Throw a multiexception.voidDeprecated.Throw a multiexception.voidDeprecated.Throw a Runtime exception.voidDeprecated.Throw an Exception, potentially with suppress.intsize()Deprecated.toString()Deprecated.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
MultiException
public MultiException()Deprecated.
-
-
Method Details
-
add
Deprecated. -
size
public int size()Deprecated. -
getThrowables
Deprecated. -
getThrowable
Deprecated. -
ifExceptionThrow
Deprecated.Throw a multiexception. If this multi exception is empty then no action is taken. If it contains a single exception that is thrown, otherwise the this multi exception is thrown.- Throws:
Exception- the Error or Exception if nested is 1, or the MultiException itself if nested is more than 1.
-
ifExceptionThrowRuntime
Deprecated.Throw a Runtime exception. If this multi exception is empty then no action is taken. If it contains a single error or runtime exception that is thrown, otherwise the this multi exception is thrown, wrapped in a runtime exception.- Throws:
Error- If this exception contains exactly 1ErrorRuntimeException- If this exception contains 1Throwablebut it is not an error, or it contains more than 1Throwableof any type.
-
ifExceptionThrowMulti
Deprecated.Throw a multiexception. If this multi exception is empty then no action is taken. If it contains a any exceptions then this multi exception is thrown.- Throws:
MultiException- the multiexception if there are nested exception
-
ifExceptionThrowSuppressed
Deprecated.Throw an Exception, potentially with suppress. If this multi exception is empty then no action is taken. If the first exception added is an Error or Exception, then it is throw with any additional exceptions added as suppressed. Otherwise a MultiException is thrown, with all exceptions added as suppressed.- Throws:
Exception- the Error or Exception if at least one is added.
-
toString
Deprecated.
-