public class PartialSuccessException extends RuntimeException
Modifier and Type | Class and Description |
---|---|
static class |
PartialSuccessException.Failure
A data object to represent a failure.
|
Constructor and Description |
---|
PartialSuccessException(List<String> successes,
List<PartialSuccessException.Failure> failures)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
List<PartialSuccessException.Failure> |
failures()
Get a list of failure messages.
|
List<String> |
successes()
Get a list of success messages.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public PartialSuccessException(List<String> successes, List<PartialSuccessException.Failure> failures)
successes
- list of success messagesfailures
- list of failure messagespublic List<String> successes()
public List<PartialSuccessException.Failure> failures()
Copyright © 2015. All Rights Reserved.