errmsg

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnonymousFuncSignatureIsNilError

func AnonymousFuncSignatureIsNilError(caller string) error

AnonymousFuncSignatureIsNilError returns the error.

func AnonymousFuncSignatureIsNilErrorWrap added in v1.4.1

func AnonymousFuncSignatureIsNilErrorWrap(caller string, err error) error

AnonymousFuncSignatureIsNilErrorWrap wraps the error.

func CaseConditionIsEmptyError

func CaseConditionIsEmptyError(caller string) error

CaseConditionIsEmptyError returns the error.

func CaseConditionIsEmptyErrorWrap added in v1.4.1

func CaseConditionIsEmptyErrorWrap(caller string, err error) error

CaseConditionIsEmptyErrorWrap wraps the error.

func CodeFormatterError

func CodeFormatterError(cmd string, msg string, fmterr error) error

CodeFormatterError returns the error.

func CodeFormatterErrorWrap added in v1.4.1

func CodeFormatterErrorWrap(cmd string, msg string, fmterr error, err error) error

CodeFormatterErrorWrap wraps the error.

func FuncInvocationParameterIsEmptyError

func FuncInvocationParameterIsEmptyError(caller string) error

FuncInvocationParameterIsEmptyError returns the error.

func FuncInvocationParameterIsEmptyErrorWrap added in v1.4.1

func FuncInvocationParameterIsEmptyErrorWrap(caller string, err error) error

FuncInvocationParameterIsEmptyErrorWrap wraps the error.

func FuncNameIsEmptyError

func FuncNameIsEmptyError(caller string) error

FuncNameIsEmptyError returns the error.

func FuncNameIsEmptyErrorWrap added in v1.4.1

func FuncNameIsEmptyErrorWrap(caller string, err error) error

FuncNameIsEmptyErrorWrap wraps the error.

func FuncParameterNameIsEmptyErr

func FuncParameterNameIsEmptyErr(caller string) error

FuncParameterNameIsEmptyErr returns the error.

func FuncParameterNameIsEmptyErrWrap added in v1.4.1

func FuncParameterNameIsEmptyErrWrap(caller string, err error) error

FuncParameterNameIsEmptyErrWrap wraps the error.

func FuncReceiverNameIsEmptyError

func FuncReceiverNameIsEmptyError(caller string) error

FuncReceiverNameIsEmptyError returns the error.

func FuncReceiverNameIsEmptyErrorWrap added in v1.4.1

func FuncReceiverNameIsEmptyErrorWrap(caller string, err error) error

FuncReceiverNameIsEmptyErrorWrap wraps the error.

func FuncReceiverTypeIsEmptyError

func FuncReceiverTypeIsEmptyError(caller string) error

FuncReceiverTypeIsEmptyError returns the error.

func FuncReceiverTypeIsEmptyErrorWrap added in v1.4.1

func FuncReceiverTypeIsEmptyErrorWrap(caller string, err error) error

FuncReceiverTypeIsEmptyErrorWrap wraps the error.

func FuncSignatureIsNilError

func FuncSignatureIsNilError(caller string) error

FuncSignatureIsNilError returns the error.

func FuncSignatureIsNilErrorWrap added in v1.4.1

func FuncSignatureIsNilErrorWrap(caller string, err error) error

FuncSignatureIsNilErrorWrap wraps the error.

func IfConditionIsEmptyError added in v1.2.0

func IfConditionIsEmptyError(caller string) error

IfConditionIsEmptyError returns the error.

func IfConditionIsEmptyErrorWrap added in v1.4.1

func IfConditionIsEmptyErrorWrap(caller string, err error) error

IfConditionIsEmptyErrorWrap wraps the error.

func InterfaceNameIsEmptyError

func InterfaceNameIsEmptyError(caller string) error

InterfaceNameIsEmptyError returns the error.

func InterfaceNameIsEmptyErrorWrap added in v1.4.1

func InterfaceNameIsEmptyErrorWrap(caller string, err error) error

InterfaceNameIsEmptyErrorWrap wraps the error.

func LastFuncParameterTypeIsEmptyErr

func LastFuncParameterTypeIsEmptyErr(caller string) error

LastFuncParameterTypeIsEmptyErr returns the error.

func LastFuncParameterTypeIsEmptyErrWrap added in v1.4.1

func LastFuncParameterTypeIsEmptyErrWrap(caller string, err error) error

LastFuncParameterTypeIsEmptyErrWrap wraps the error.

func ListErrs added in v1.4.1

func ListErrs() []string

ListErrs returns the list of errors.

func StructFieldNameIsEmptyErr

func StructFieldNameIsEmptyErr(caller string) error

StructFieldNameIsEmptyErr returns the error.

func StructFieldNameIsEmptyErrWrap added in v1.4.1

func StructFieldNameIsEmptyErrWrap(caller string, err error) error

StructFieldNameIsEmptyErrWrap wraps the error.

func StructFieldTypeIsEmptyErr

func StructFieldTypeIsEmptyErr(caller string) error

StructFieldTypeIsEmptyErr returns the error.

func StructFieldTypeIsEmptyErrWrap added in v1.4.1

func StructFieldTypeIsEmptyErrWrap(caller string, err error) error

StructFieldTypeIsEmptyErrWrap wraps the error.

func StructNameIsNilErr

func StructNameIsNilErr(caller string) error

StructNameIsNilErr returns the error.

func StructNameIsNilErrWrap added in v1.4.1

func StructNameIsNilErrWrap(caller string, err error) error

StructNameIsNilErrWrap wraps the error.

func TypeParameterParameterIsEmptyErr added in v1.6.0

func TypeParameterParameterIsEmptyErr(caller string) error

TypeParameterParameterIsEmptyErr returns the error.

func TypeParameterParameterIsEmptyErrWrap added in v1.6.0

func TypeParameterParameterIsEmptyErrWrap(caller string, err error) error

TypeParameterParameterIsEmptyErrWrap wraps the error.

func TypeParameterTypeIsEmptyErr added in v1.6.0

func TypeParameterTypeIsEmptyErr(caller string) error

TypeParameterTypeIsEmptyErr returns the error.

func TypeParameterTypeIsEmptyErrWrap added in v1.6.0

func TypeParameterTypeIsEmptyErrWrap(caller string, err error) error

TypeParameterTypeIsEmptyErrWrap wraps the error.

func UnnamedReturnTypeAppearsAfterNamedReturnTypeError added in v1.4.0

func UnnamedReturnTypeAppearsAfterNamedReturnTypeError(caller string) error

UnnamedReturnTypeAppearsAfterNamedReturnTypeError returns the error.

func UnnamedReturnTypeAppearsAfterNamedReturnTypeErrorWrap added in v1.4.1

func UnnamedReturnTypeAppearsAfterNamedReturnTypeErrorWrap(caller string, err error) error

UnnamedReturnTypeAppearsAfterNamedReturnTypeErrorWrap wraps the error.

func ValueOfCompositeLiteralIsEmptyError added in v1.4.0

func ValueOfCompositeLiteralIsEmptyError(caller string) error

ValueOfCompositeLiteralIsEmptyError returns the error.

func ValueOfCompositeLiteralIsEmptyErrorWrap added in v1.4.1

func ValueOfCompositeLiteralIsEmptyErrorWrap(caller string, err error) error

ValueOfCompositeLiteralIsEmptyErrorWrap wraps the error.

Types

type Errs added in v1.6.0

type Errs struct {
	StructNameIsNilErr                                error `errmsg:"struct name must not be empty, but it gets empty (caused at %s)" vars:"caller string"`
	StructFieldNameIsEmptyErr                         error `errmsg:"field name must not be empty, but it gets empty (caused at %s)" vars:"caller string"`
	StructFieldTypeIsEmptyErr                         error `errmsg:"field type must not be empty, but it gets empty (caused at %s)" vars:"caller string"`
	FuncParameterNameIsEmptyErr                       error `errmsg:"func parameter name must not be empty, but it gets empty (caused at %s)" vars:"caller string"`
	LastFuncParameterTypeIsEmptyErr                   error `errmsg:"the last func parameter type must not be empty, but it gets empty (caused at %s)" vars:"caller string"`
	FuncNameIsEmptyError                              error `errmsg:"name of func must not be empty, but it gets empty (caused at %s)" vars:"caller string"`
	InterfaceNameIsEmptyError                         error `errmsg:"name of interface must not be empty, but it gets empty (caused at %s)" vars:"caller string"`
	FuncReceiverNameIsEmptyError                      error `errmsg:"name of func receiver must not be empty, but it gets empty (caused at %s)" vars:"caller string"`
	FuncReceiverTypeIsEmptyError                      error `errmsg:"type of func receiver must not be empty, but it gets empty (caused at %s)" vars:"caller string"`
	FuncSignatureIsNilError                           error `errmsg:"func signature must not be nil, bit it gets nil (caused at %s)" vars:"caller string"`
	AnonymousFuncSignatureIsNilError                  error `errmsg:"anonymous func signature must not be nil, bit it gets nil (caused at %s)" vars:"caller string"`
	FuncInvocationParameterIsEmptyError               error `errmsg:"a parameter of function invocation must not be nil, but it gets nil (caused at %s)" vars:"caller string"`
	CodeFormatterError                                error `errmsg:"code formatter raises error: command='%s', err='%s', msg='%s'" vars:"cmd string, msg string, fmterr error"`
	CaseConditionIsEmptyError                         error `errmsg:"condition of case must not be empty, but it gets empty (caused at %s)" vars:"caller string"`
	IfConditionIsEmptyError                           error `errmsg:"condition of if must not be empty, but it gets empty (caused at %s)" vars:"caller string"`
	UnnamedReturnTypeAppearsAfterNamedReturnTypeError error `errmsg:"unnamed return type appears after named return type (caused at %s)" vars:"caller string"`
	ValueOfCompositeLiteralIsEmptyError               error `errmsg:"a value of composite literal must not be empty, but it gets empty (caused at %s)" vars:"caller string"`
	TypeParameterParameterIsEmptyErr                  error `errmsg:"type-parameter's parameter must not be empty, but it gets empty (caused at %s)" vars:"caller string"`
	TypeParameterTypeIsEmptyErr                       error `errmsg:"type-parameter's type must not be empty, but it gets empty (caused at %s)" vars:"caller string"`
}

type ErrsType added in v1.4.1

type ErrsType int

ErrsType represents the error type.

const (

	// StructNameIsNilErrType represents the error type for StructNameIsNilErr.
	StructNameIsNilErrType ErrsType = iota
	// StructFieldNameIsEmptyErrType represents the error type for StructFieldNameIsEmptyErr.
	StructFieldNameIsEmptyErrType
	// StructFieldTypeIsEmptyErrType represents the error type for StructFieldTypeIsEmptyErr.
	StructFieldTypeIsEmptyErrType
	// FuncParameterNameIsEmptyErrType represents the error type for FuncParameterNameIsEmptyErr.
	FuncParameterNameIsEmptyErrType
	// LastFuncParameterTypeIsEmptyErrType represents the error type for LastFuncParameterTypeIsEmptyErr.
	LastFuncParameterTypeIsEmptyErrType
	// FuncNameIsEmptyErrorType represents the error type for FuncNameIsEmptyError.
	FuncNameIsEmptyErrorType
	// InterfaceNameIsEmptyErrorType represents the error type for InterfaceNameIsEmptyError.
	InterfaceNameIsEmptyErrorType
	// FuncReceiverNameIsEmptyErrorType represents the error type for FuncReceiverNameIsEmptyError.
	FuncReceiverNameIsEmptyErrorType
	// FuncReceiverTypeIsEmptyErrorType represents the error type for FuncReceiverTypeIsEmptyError.
	FuncReceiverTypeIsEmptyErrorType
	// FuncSignatureIsNilErrorType represents the error type for FuncSignatureIsNilError.
	FuncSignatureIsNilErrorType
	// AnonymousFuncSignatureIsNilErrorType represents the error type for AnonymousFuncSignatureIsNilError.
	AnonymousFuncSignatureIsNilErrorType
	// FuncInvocationParameterIsEmptyErrorType represents the error type for FuncInvocationParameterIsEmptyError.
	FuncInvocationParameterIsEmptyErrorType
	// CodeFormatterErrorType represents the error type for CodeFormatterError.
	CodeFormatterErrorType
	// CaseConditionIsEmptyErrorType represents the error type for CaseConditionIsEmptyError.
	CaseConditionIsEmptyErrorType
	// IfConditionIsEmptyErrorType represents the error type for IfConditionIsEmptyError.
	IfConditionIsEmptyErrorType
	// UnnamedReturnTypeAppearsAfterNamedReturnTypeErrorType represents the error type for UnnamedReturnTypeAppearsAfterNamedReturnTypeError.
	UnnamedReturnTypeAppearsAfterNamedReturnTypeErrorType
	// ValueOfCompositeLiteralIsEmptyErrorType represents the error type for ValueOfCompositeLiteralIsEmptyError.
	ValueOfCompositeLiteralIsEmptyErrorType
	// TypeParameterParameterIsEmptyErrType represents the error type for TypeParameterParameterIsEmptyErr.
	TypeParameterParameterIsEmptyErrType
	// TypeParameterTypeIsEmptyErrType represents the error type for TypeParameterTypeIsEmptyErr.
	TypeParameterTypeIsEmptyErrType
	// ErrsUnknownType represents unknown type for Errs
	ErrsUnknownType
)

func IdentifyErrs added in v1.4.1

func IdentifyErrs(err error) ErrsType

IdentifyErrs checks the identity of an error

Jump to

Keyboard shortcuts

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