{"modulePath":"github.com/neflyte/timetracker","version":"v0.3.4","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package errors\n\n## Constants\n\n```go\nconst (\n\t// CreateTaskError represents an error that occurs when creating a new task\n\tCreateTaskError = \"error creating new task\"\n\t// DeleteTaskError represents an error that occurs when deleting a task\n\tDeleteTaskError = \"error deleting task\"\n\t// ListTaskError represents an error that occurs when listing tasks\n\tListTaskError = \"error listing tasks\"\n\t// SearchTaskError represents an error that occurs when searching for tasks\n\tSearchTaskError = \"error searching for tasks\"\n\t// LoadTaskError represents an error that occurs when loading a task\n\tLoadTaskError = \"error loading task\"\n\t// StopRunningTaskError represents an error that occurs when stopping the running task\n\tStopRunningTaskError = \"error stopping the running task\"\n\t// UpdateDeletedTaskError represents an error that occurs when updating a deleted task\n\tUpdateDeletedTaskError = \"cannot update a deleted task\"\n\t// UndeleteTaskError represents an error that occurs when undeleting a task\n\tUndeleteTaskError = \"error undeleting task\"\n\t// UpdateTaskError represents an error that occurs when updating a task\n\tUpdateTaskError = \"error updating task\"\n\t// NoRunningTasksError represents an error that occurs when a running task was expected but not found\n\tNoRunningTasksError = \"a task is not running\"\n\t// OverwriteTaskByCreateError represents an error that occurs when a task is about to be overwritten by creating it again\n\tOverwriteTaskByCreateError = \"cannot overwrite a task by creating it\"\n\t// LoadInvalidTaskError represents an error that occurs when an attempt is made to load a task with an invalid (nonexistant) ID\n\tLoadInvalidTaskError = \"cannot load a task that does not exist\"\n\t// UpdateInvalidTaskError represents an error that occurs when an attempt is made to update a task with an invalid (nonexistant) ID\n\tUpdateInvalidTaskError = \"cannot update a task that does not exist\"\n\t// DeleteInvalidTaskError represents an error that occurs when an attempt is made to delete a task with an invalid (nonexistant) ID\n\tDeleteInvalidTaskError = \"cannot delete a task that does not exist\"\n\t// EmptySynopsisTaskError represents an error that occurs when a task synopsis was expected but not found\n\tEmptySynopsisTaskError = \"cannot create a task with an empty synopsis\"\n\t// UpdateEmptySynopsisTaskError represents an error that occurs when an attempt is made to update an existing task to have an empty synopsis\n\tUpdateEmptySynopsisTaskError = \"cannot update a task to have an empty synopsis\"\n\t// InvalidTaskDataError represents an error that occurs when a task is found to have invalid data\n\tInvalidTaskDataError = \"the task is invalid\"\n)\n```\n\n```go\nconst (\n\t// CreateTimesheetError represents an error that occurs when creating a timesheet\n\tCreateTimesheetError = \"error creating timesheet\"\n\n\t// OverwriteTimesheetByCreateError represents an error that occurs when a timesheet is about to be overwritten by creating it again\n\tOverwriteTimesheetByCreateError = \"cannot overwrite a timesheet by creating it\"\n\t// TimesheetWithoutTaskError represents an error that occurs when executing an operation on a timesheet that does not have a linked task\n\tTimesheetWithoutTaskError = \"no task is associated with the timesheet\"\n\t// ListTimesheetError represents an error that occurs when timesheets are listed\n\tListTimesheetError = \"error listing timesheets\"\n\t// LoadInvalidTimesheetError represents an error that occurs when an attempt is made to load a timesheet with an invalid (nonexistant) ID\n\tLoadInvalidTimesheetError = \"cannot load a timesheet that does not exist\"\n\t// UpdateInvalidTimesheetError represents an error that occurs when an attempt is made to update a timesheet with an invalid (nonexistant) ID\n\tUpdateInvalidTimesheetError = \"cannot update a timesheet that does not exist\"\n\t// DeleteInvalidTimesheetError represents an error that occurs when an attempt is made to delete a timesheet with an invalid (nonexistant) ID\n\tDeleteInvalidTimesheetError = \"cannot delete a timesheet that does not exist\"\n)\n```\n\n```go\nconst (\n\t// ScanNowIntoSQLNullTimeError describes an error that occurs when scanning time.Now() into a sql.NullTime object\n\tScanNowIntoSQLNullTimeError = \"error scanning time.Now() into sql.NullTime\"\n)\n```\n\n## Types\n\n```go\ntype ErrInvalidTaskData struct{}\n```\n\n```go\nfunc (e ErrInvalidTaskData) Error() string\n```\n\n```go\ntype ErrInvalidTaskState struct {\n\tDetails string\n}\n```\nErrInvalidTaskState represents an error that occurs when a task is in an invalid state\n\n```go\nfunc (e ErrInvalidTaskState) Error() string\n```\n\n```go\ntype ErrInvalidTimesheetState struct {\n\t// Details is any extra information related to the error\n\tDetails string\n}\n```\nErrInvalidTimesheetState represents an error that occurs when an timesheet is in an invalid state\n\n```go\nfunc (e ErrInvalidTimesheetState) Error() string\n```\n\n```go\ntype ErrNoRunningTask struct{}\n```\nErrNoRunningTask represents an error that occurs when a running task was expected but not found\n\n```go\nfunc (e ErrNoRunningTask) Error() string\n```\n\n```go\ntype ErrPidfileNotFound struct {\n\tPidfilePath string\n}\n```\nErrPidfileNotFound represents an error that occurs when a Process ID (PID) file cannot be found\n\n```go\nfunc (e *ErrPidfileNotFound) Error() string\n```\n\n```go\ntype ErrScanNowIntoSQLNull struct {\n\t// Wrapped is a Wrapped error\n\tWrapped error\n}\n```\nErrScanNowIntoSQLNull represents an error that occurs when scanning time.Now() into a sql.NullTime object\n\n```go\nfunc (e ErrScanNowIntoSQLNull) Error() string\n```\n\n```go\nfunc (e ErrScanNowIntoSQLNull) Unwrap() error\n```\nUnwrap implements a Wrapped error\n\n```go\ntype InvalidTaskReportEndDate struct {\n\tWrapped error\n\tEndDate string\n}\n```\n\n```go\nfunc (e InvalidTaskReportEndDate) Error() string\n```\n\n```go\nfunc (e InvalidTaskReportEndDate) Unwrap() error\n```\n\n```go\ntype InvalidTaskReportStartDate struct {\n\tWrapped   error\n\tStartDate string\n}\n```\n\n```go\nfunc (e InvalidTaskReportStartDate) Error() string\n```\n\n```go\nfunc (e InvalidTaskReportStartDate) Unwrap() error\n```\n\n","path":"github.com/neflyte/timetracker/lib/errors","name":"errors","synopsis":"","isRedistributable":true}
