public class OutcomeFactory extends Object
Modifier and Type | Class and Description |
---|---|
static class |
OutcomeFactory.OutcomeImpl
An implementation of an
outcome . |
Constructor and Description |
---|
OutcomeFactory() |
Modifier and Type | Method and Description |
---|---|
Outcome |
createError(String msg) |
Outcome |
createError(String msg,
Exception ex) |
Outcome |
createInformation(String msg,
Exception ex) |
Outcome |
createMultiOutcome(String message,
List<Outcome> outcomes) |
Outcome |
createOK() |
Outcome |
createOK(String msg) |
Outcome |
createWarning(String msg) |
static OutcomeFactory |
getInstance() |
public static OutcomeFactory getInstance()
public Outcome createOK()
public Outcome createError(String msg)
msg
- public Outcome createError(String msg, Exception ex)
msg
- ex
- public Outcome createWarning(String msg)
msg
- Copyright © 2013–2019. All rights reserved.