errjson

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2021 License: MIT Imports: 4 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

Jump to

Keyboard shortcuts

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