errors

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2025 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error int
const (
	InvalidURL Error = iota + 100
	LoginRequired
	FlagMissing
	FileGeneration
	QuestionNotFound
	QuestionIdOutOfRange
	NoDailyChallenge
	Unexpected
	NotImplemented
	NoCodeSnippetsFound
	ExtensionNotFound
	SnippetNotFoundInGivenLang
	BadAppCommand
	InvalidSearchMethod
	FailedToWriteImage
	FailedToCreateDirectory
	FailedToDownloadImage
	FileTemplateInvalid
	FileTemplateDoesntExist
)

func (Error) Error

func (e Error) Error() string

func (Error) GetCode

func (e Error) GetCode() int

func (Error) GetMessage

func (e Error) GetMessage(cli string) string

Jump to

Keyboard shortcuts

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