errors

package
v1.0.284 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2022 License: MIT Imports: 1 Imported by: 0

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

func IsWorkflowFatal(err error) bool

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL