Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrClosing = errors.New("SHAR server is shutting down") // ErrClosing signifies SHAR server is shutting dow ErrWorkflowInstanceNotFound = errors.New("workflow instance not found") // ErrWorkflowInstanceNotFound signifies workflow instance not found ErrWorkflowNotFound = errors.New("workflow not found") // ErrWorkflowNotFound signifies workflow not found ErrElementNotFound = errors.New("element not found") // ErrElementNotFound signifies element not found ErrStateNotFound = errors.New("state not found") // ErrStateNotFound signifies state not found ErrJobNotFound = errors.New("job not found") // ErrJobNotFound signifies job not found ErrFatalBadDuration = &ErrWorkflowFatal{Err: errors.New("timer embargo value could not be evaluated to an int or a duration")} // ErrFatalBadDuration sigifies that the timer embargo value could not be evaluated to an int or a duration )
View Source
var (
NatsMsgKeyNotFound = "nats: key not found" // NatsMsgKeyNotFound is the substring match for NATS KV not found errors in
)
Functions ¶
func IsWorkflowFatal ¶ added in v0.1.172
IsWorkflowFatal is a quick test to check whether the error contains ErrWorkflowFatal
Types ¶
type ErrWorkflowFatal ¶
type ErrWorkflowFatal struct {
Err error
}
ErrWorkflowFatal signifys that the workflow must terniate
func (ErrWorkflowFatal) Error ¶
func (e ErrWorkflowFatal) Error() string
Error returns the string version of the ErrWorkflowFatal error
Click to show internal directories.
Click to hide internal directories.