Class Outcome
- java.lang.Object
-
- org.jenkinsci.plugins.workflow.support.steps.input.Outcome
-
- All Implemented Interfaces:
Serializable
public final class Outcome extends Object implements Serializable
Result of an evaluation. Either represents a value in case of a normal return, or a throwable object in case of abnormal return. Note that both fields can be null, in which case it means a normal return of the value 'null'.- Author:
- Kohsuke Kawaguchi
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Throwable
getAbnormal()
Object
getNormal()
boolean
isFailure()
boolean
isSuccess()
Object
replay()
String
toString()
Object
wrapReplay()
Likereplay()
but wraps the throwable intoInvocationTargetException
.
-
-
-
Method Detail
-
wrapReplay
public Object wrapReplay() throws InvocationTargetException
Likereplay()
but wraps the throwable intoInvocationTargetException
.- Throws:
InvocationTargetException
-
getNormal
public Object getNormal()
-
getAbnormal
public Throwable getAbnormal()
-
isSuccess
public boolean isSuccess()
-
isFailure
public boolean isFailure()
-
-