-
Notifications
You must be signed in to change notification settings - Fork 1
/
errors.gno
40 lines (38 loc) · 2.48 KB
/
errors.gno
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package zentasktic
import "errors"
var (
ErrTaskNotEditable = errors.New("Task is not editable")
ErrProjectNotEditable = errors.New("Project is not editable")
ErrProjectIdNotFound = errors.New("Project id not found")
ErrTaskIdNotFound = errors.New("Task id not found")
ErrTaskFailedToAssert = errors.New("Failed to assert Task type")
ErrProjectFailedToAssert = errors.New("Failed to assert Project type")
ErrProjectTasksNotFound = errors.New("Could not get tasks for project")
ErrCollectionsProjectsNotFound = errors.New("Could not get projects for this collection")
ErrCollectionsTasksNotFound = errors.New("Could not get tasks for this collection")
ErrTaskIdAlreadyExists = errors.New("A task with the provided id already exists")
ErrCollectionIdAlreadyExists = errors.New("A collection with the provided id already exists")
ErrProjectIdAlreadyExists = errors.New("A project with the provided id already exists")
ErrTaskByIdNotFound = errors.New("Can't get task by id")
ErrProjectByIdNotFound = errors.New("Can't get project by id")
ErrCollectionByIdNotFound = errors.New("Can't get collection by id")
ErrTaskNotRemovable = errors.New("Cannot remove a task directly from this realm")
ErrProjectNotRemovable = errors.New("Cannot remove a project directly from this realm")
ErrProjectTasksNotRemoved = errors.New("Project tasks were not removed")
ErrTaskNotRemoved = errors.New("Task was not removed")
ErrTaskNotInAssessRealm = errors.New("Task is not in Assess, cannot edit Body")
ErrProjectNotInAssessRealm = errors.New("Project is not in Assess, cannot edit Body")
ErrContextIdAlreadyExists = errors.New("A context with the provided id already exists")
ErrContextIdNotFound = errors.New("Context id not found")
ErrCollectionIdNotFound = errors.New("Collection id not found")
ErrContextNotRemoved = errors.New("Context was not removed")
ErrProjectNotRemoved = errors.New("Project was not removed")
ErrCollectionNotRemoved = errors.New("Collection was not removed")
ErrObjectPathNotUpdated = errors.New("Object path wasn't updated")
ErrInvalidateDateFormat = errors.New("Invalida date format")
ErrInvalidDateFilterType = errors.New("Invalid date filter type")
ErrRealmIdAlreadyExists = errors.New("A realm with the same id already exists")
ErrRealmIdNotAllowed = errors.New("This is a reserved realm id")
ErrRealmIdNotFound = errors.New("Realm id not found")
ErrRealmNotRemoved = errors.New("Realm was not removed")
)