public class SagaError extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SagaError.Reason
Represents the reason for an action processor or saga failing.
|
Modifier and Type | Method and Description |
---|---|
String |
getMessage()
The error message accessor
|
SagaError.Reason |
getReason()
The reason value accessor.
|
static SagaError |
of(SagaError.Reason reason,
String msg)
|
static SagaError |
of(SagaError.Reason reason,
Throwable throwable)
|
public static SagaError of(SagaError.Reason reason, Throwable throwable)
reason
- the reason valuethrowable
- for more contextSagaError
public static SagaError of(SagaError.Reason reason, String msg)
reason
- the reason valuemsg
- for more contextSagaError
public SagaError.Reason getReason()
public String getMessage()
Copyright © 2019. All rights reserved.