Documentation ¶
Index ¶
Constants ¶
Variables ¶
View Source
var ( // ErrCritical is returned when a critical error stops the execution of a task. ErrCritical = errors.New("critical error") // ErrOperationAborted is returned when the operation was aborted e.g. by a shutdown signal. ErrOperationAborted = errors.New("operation was aborted") // ErrMessageNotFound is returned when a message was not found. ErrMessageNotFound = errors.New("message not found") // ErrNodeNotSynced is returned when the node is not synchronized. ErrNodeNotSynced = errors.New("node is not synchronized") // ErrNodeLoadTooHigh is returned when the load on the node is too high. ErrNodeLoadTooHigh = errors.New("node load is too high") // ErrSnapshotInfoNotFound is returned when the snapshot info is not found in the database. ErrSnapshotInfoNotFound = errors.New("snapshot info not found") )
Functions ¶
func CriticalError ¶
CriticalError wraps the given error as a critical error.
func IsCriticalError ¶
IsCriticalError unwraps the inner error held by the critical error if the given error is a critical error. If the given error is not a critical error, nil is returned.
func IsSoftError ¶
IsSoftError unwraps the inner error held by the soft error if the given error is a soft error. If the given error is not a soft error, nil is returned.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.