exceptions

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MissingTodoIdError = errors.New("missing ID")
	NoNeedBackupError  = errors.New("current collection is the same as last backup. Skipping backup")
)

Functions

func InvalidTodoIdError

func InvalidTodoIdError(id int) error

func NoChangedTodoError

func NoChangedTodoError(index int) error

func NoSetupError

func NoSetupError(err error) error

func ParentTodoNotFoundError

func ParentTodoNotFoundError(id int) error

func TodoItemHasChildrenError

func TodoItemHasChildrenError(index int, children int) error

func TodoNotFoundError

func TodoNotFoundError(id int) error

Types

type TodoException

type TodoException struct {
	Err          error
	CancelSaving bool
	CancelSync   bool
}

func NewException

func NewException(err error) *TodoException

func (*TodoException) Error

func (e *TodoException) Error() string

Jump to

Keyboard shortcuts

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