public final class Outcome extends Object implements Serializable
Constructor and Description |
---|
Outcome(Object normal,
Throwable abnormal) |
Modifier and Type | Method and Description |
---|---|
Throwable |
getAbnormal() |
Object |
getNormal() |
boolean |
isFailure() |
boolean |
isSuccess() |
Object |
replay() |
String |
toString() |
Object |
wrapReplay()
Like
replay() but wraps the throwable into InvocationTargetException . |
public Object wrapReplay() throws InvocationTargetException
replay()
but wraps the throwable into InvocationTargetException
.InvocationTargetException
public Object getNormal()
public Throwable getAbnormal()
public boolean isSuccess()
public boolean isFailure()
Copyright © 2016–2017. All rights reserved.