common

package
v0.0.0-...-f871a89 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonError

type CommonError struct {
	Func string // the failing functions
	Data string // the input
	Err  error  // the reason the conversion failed (e.g. ErrRange, ErrSyntax, etc.)
}

func (*CommonError) Error

func (e *CommonError) Error() string

func (*CommonError) Unwrap

func (e *CommonError) Unwrap() error

type ErrorInt

type ErrorInt interface {
	CurrentError() ErrorStateType
}

func New

func New(state ErrorStateType) ErrorInt

type ErrorStateType

type ErrorStateType int64
const (
	Unexpected_Error ErrorStateType = iota
	CanNotFoundFile_Error
	Marshal_Error
	NotionAPIRequest_Error
	TistoryAPIRequest_Error
	Arguments_Error
)

func (ErrorStateType) String

func (err ErrorStateType) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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