Documentation ¶
Index ¶
- func AnonymousFuncSignatureIsNilError(caller string) error
- func AnonymousFuncSignatureIsNilErrorWrap(caller string, err error) error
- func CaseConditionIsEmptyError(caller string) error
- func CaseConditionIsEmptyErrorWrap(caller string, err error) error
- func CodeFormatterError(cmd string, msg string, fmterr error) error
- func CodeFormatterErrorWrap(cmd string, msg string, fmterr error, err error) error
- func FuncInvocationParameterIsEmptyError(caller string) error
- func FuncInvocationParameterIsEmptyErrorWrap(caller string, err error) error
- func FuncNameIsEmptyError(caller string) error
- func FuncNameIsEmptyErrorWrap(caller string, err error) error
- func FuncParameterNameIsEmptyErr(caller string) error
- func FuncParameterNameIsEmptyErrWrap(caller string, err error) error
- func FuncReceiverNameIsEmptyError(caller string) error
- func FuncReceiverNameIsEmptyErrorWrap(caller string, err error) error
- func FuncReceiverTypeIsEmptyError(caller string) error
- func FuncReceiverTypeIsEmptyErrorWrap(caller string, err error) error
- func FuncSignatureIsNilError(caller string) error
- func FuncSignatureIsNilErrorWrap(caller string, err error) error
- func IfConditionIsEmptyError(caller string) error
- func IfConditionIsEmptyErrorWrap(caller string, err error) error
- func InterfaceNameIsEmptyError(caller string) error
- func InterfaceNameIsEmptyErrorWrap(caller string, err error) error
- func LastFuncParameterTypeIsEmptyErr(caller string) error
- func LastFuncParameterTypeIsEmptyErrWrap(caller string, err error) error
- func ListErrs() []string
- func StructFieldNameIsEmptyErr(caller string) error
- func StructFieldNameIsEmptyErrWrap(caller string, err error) error
- func StructFieldTypeIsEmptyErr(caller string) error
- func StructFieldTypeIsEmptyErrWrap(caller string, err error) error
- func StructNameIsNilErr(caller string) error
- func StructNameIsNilErrWrap(caller string, err error) error
- func TypeParameterParameterIsEmptyErr(caller string) error
- func TypeParameterParameterIsEmptyErrWrap(caller string, err error) error
- func TypeParameterTypeIsEmptyErr(caller string) error
- func TypeParameterTypeIsEmptyErrWrap(caller string, err error) error
- func UnnamedReturnTypeAppearsAfterNamedReturnTypeError(caller string) error
- func UnnamedReturnTypeAppearsAfterNamedReturnTypeErrorWrap(caller string, err error) error
- func ValueOfCompositeLiteralIsEmptyError(caller string) error
- func ValueOfCompositeLiteralIsEmptyErrorWrap(caller string, err error) error
- type Errs
- type ErrsType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnonymousFuncSignatureIsNilError ¶
AnonymousFuncSignatureIsNilError returns the error.
func AnonymousFuncSignatureIsNilErrorWrap ¶ added in v1.4.1
AnonymousFuncSignatureIsNilErrorWrap wraps the error.
func CaseConditionIsEmptyError ¶
CaseConditionIsEmptyError returns the error.
func CaseConditionIsEmptyErrorWrap ¶ added in v1.4.1
CaseConditionIsEmptyErrorWrap wraps the error.
func CodeFormatterError ¶
CodeFormatterError returns the error.
func CodeFormatterErrorWrap ¶ added in v1.4.1
CodeFormatterErrorWrap wraps the error.
func FuncInvocationParameterIsEmptyError ¶
FuncInvocationParameterIsEmptyError returns the error.
func FuncInvocationParameterIsEmptyErrorWrap ¶ added in v1.4.1
FuncInvocationParameterIsEmptyErrorWrap wraps the error.
func FuncNameIsEmptyError ¶
FuncNameIsEmptyError returns the error.
func FuncNameIsEmptyErrorWrap ¶ added in v1.4.1
FuncNameIsEmptyErrorWrap wraps the error.
func FuncParameterNameIsEmptyErr ¶
FuncParameterNameIsEmptyErr returns the error.
func FuncParameterNameIsEmptyErrWrap ¶ added in v1.4.1
FuncParameterNameIsEmptyErrWrap wraps the error.
func FuncReceiverNameIsEmptyError ¶
FuncReceiverNameIsEmptyError returns the error.
func FuncReceiverNameIsEmptyErrorWrap ¶ added in v1.4.1
FuncReceiverNameIsEmptyErrorWrap wraps the error.
func FuncReceiverTypeIsEmptyError ¶
FuncReceiverTypeIsEmptyError returns the error.
func FuncReceiverTypeIsEmptyErrorWrap ¶ added in v1.4.1
FuncReceiverTypeIsEmptyErrorWrap wraps the error.
func FuncSignatureIsNilError ¶
FuncSignatureIsNilError returns the error.
func FuncSignatureIsNilErrorWrap ¶ added in v1.4.1
FuncSignatureIsNilErrorWrap wraps the error.
func IfConditionIsEmptyError ¶ added in v1.2.0
IfConditionIsEmptyError returns the error.
func IfConditionIsEmptyErrorWrap ¶ added in v1.4.1
IfConditionIsEmptyErrorWrap wraps the error.
func InterfaceNameIsEmptyError ¶
InterfaceNameIsEmptyError returns the error.
func InterfaceNameIsEmptyErrorWrap ¶ added in v1.4.1
InterfaceNameIsEmptyErrorWrap wraps the error.
func LastFuncParameterTypeIsEmptyErr ¶
LastFuncParameterTypeIsEmptyErr returns the error.
func LastFuncParameterTypeIsEmptyErrWrap ¶ added in v1.4.1
LastFuncParameterTypeIsEmptyErrWrap wraps the error.
func StructFieldNameIsEmptyErr ¶
StructFieldNameIsEmptyErr returns the error.
func StructFieldNameIsEmptyErrWrap ¶ added in v1.4.1
StructFieldNameIsEmptyErrWrap wraps the error.
func StructFieldTypeIsEmptyErr ¶
StructFieldTypeIsEmptyErr returns the error.
func StructFieldTypeIsEmptyErrWrap ¶ added in v1.4.1
StructFieldTypeIsEmptyErrWrap wraps the error.
func StructNameIsNilErr ¶
StructNameIsNilErr returns the error.
func StructNameIsNilErrWrap ¶ added in v1.4.1
StructNameIsNilErrWrap wraps the error.
func TypeParameterParameterIsEmptyErr ¶ added in v1.6.0
TypeParameterParameterIsEmptyErr returns the error.
func TypeParameterParameterIsEmptyErrWrap ¶ added in v1.6.0
TypeParameterParameterIsEmptyErrWrap wraps the error.
func TypeParameterTypeIsEmptyErr ¶ added in v1.6.0
TypeParameterTypeIsEmptyErr returns the error.
func TypeParameterTypeIsEmptyErrWrap ¶ added in v1.6.0
TypeParameterTypeIsEmptyErrWrap wraps the error.
func UnnamedReturnTypeAppearsAfterNamedReturnTypeError ¶ added in v1.4.0
UnnamedReturnTypeAppearsAfterNamedReturnTypeError returns the error.
func UnnamedReturnTypeAppearsAfterNamedReturnTypeErrorWrap ¶ added in v1.4.1
UnnamedReturnTypeAppearsAfterNamedReturnTypeErrorWrap wraps the error.
func ValueOfCompositeLiteralIsEmptyError ¶ added in v1.4.0
ValueOfCompositeLiteralIsEmptyError returns the error.
func ValueOfCompositeLiteralIsEmptyErrorWrap ¶ added in v1.4.1
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
IdentifyErrs checks the identity of an error