errjson

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 License: MIT Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	*corejson.Result
	ErrorWrapper *errorwrapper.Wrapper
}

func EmptyWithError

func EmptyWithError(err error) *Result

wrapper will be empty error wrapper

func EmptyWithErrorPtrUsingErrorWrapper

func EmptyWithErrorPtrUsingErrorWrapper(
	wrapper *errorwrapper.Wrapper,
) *Result

wrapper nil will point to empty error wrapper

func EmptyWithoutErrorPtr

func EmptyWithoutErrorPtr() *Result

func Error

func Error(
	err error,
	errVariation errtype.Variation,
) *Result

func New

func New(
	jsonBytes []byte,
	err error,
) *Result

func NewBytes

func NewBytes(
	jsonBytes []byte,
	wrapper *errorwrapper.Wrapper,
) *Result

wrapper nil will point to empty error wrapper

func NewBytesPtr

func NewBytesPtr(
	jsonBytes *[]byte,
	wrapper *errorwrapper.Wrapper,
) *Result

wrapper nil will point to empty error wrapper

func NewFromFile added in v0.3.0

func NewFromFile(filePath string) *Result

func NewFromFileLock added in v0.3.0

func NewFromFileLock(filePath string) *Result

type ResultsCollection added in v0.4.3

type ResultsCollection struct {
	*corejson.ResultsCollection
	ErrorCollection *errwrappers.Collection
}

func EmptyResultsCollection added in v0.4.3

func EmptyResultsCollection() *ResultsCollection

func NewResultsCollection added in v0.4.3

func NewResultsCollection(
	jsonCollection *corejson.ResultsCollection,
) *ResultsCollection

func NewResultsCollectionUsingError added in v0.4.3

func NewResultsCollectionUsingError(
	err error,
) *ResultsCollection

func NewResultsCollectionUsingTypeError added in v0.4.3

func NewResultsCollectionUsingTypeError(
	errType errtype.Variation,
	err error,
) *ResultsCollection

func NewResultsCollectionUsingTypeMsg added in v0.4.3

func NewResultsCollectionUsingTypeMsg(
	errType errtype.Variation,
	msg string,
) *ResultsCollection

Jump to

Keyboard shortcuts

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