errors

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TODO added in v0.2.0

type TODO struct {
	// contains filtered or unexported fields
}

TODO encapsulates the todo error information

func IssueClosedErr

func IssueClosedErr(filename string, lines []string, linecnt int, issueID string) *TODO

IssueClosedErr when referenced todo issue is closed

func IssueNonExistentErr

func IssueNonExistentErr(filename string, lines []string, linecnt int, issueID string) *TODO

IssueNonExistentErr when referenced todo issue doesn't exist

func MalformedTODOErr

func MalformedTODOErr(filename string, lines []string, linecnt int) *TODO

MalformedTODOErr when todo is not properly formatted

func (*TODO) Error added in v0.2.0

func (err *TODO) Error() string

func (*TODO) String added in v0.2.0

func (err *TODO) String() string

func (*TODO) ToJSON added in v0.2.0

func (err *TODO) ToJSON() ([]byte, error)

ToJSON converts the todo error into json format

type TODOErrType added in v0.2.0

type TODOErrType string

TODOErrType is an enum representing the type of todo error

const (
	TODOErrTypeMalformed        TODOErrType = "Malformed todo"
	TODOErrTypeIssueClosed      TODOErrType = "Issue is closed"
	TODOErrTypeNonExistentIssue TODOErrType = "Issue doesn't exist"
)

supported todo error types enum

Jump to

Keyboard shortcuts

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