Documentation ¶
Index ¶
- Variables
- func CombineErrorAndMessageToError(err error, msg string) error
- func CombineErrorsToSingle(errItems ...error) error
- func CombineErrorsToSingleString(separator string, errItems ...error) string
- type Wrapper
- func CombineErrorsToSingleWrapper(errType errtype.Variation, errItems ...error) *Wrapper
- func Empty() Wrapper
- func EmptyPrint() Wrapper
- func EmptyPtr() *Wrapper
- func New(errType errtype.Variation) Wrapper
- func NewDirectory(error error) Wrapper
- func NewDirectoryPath(msg, path string) Wrapper
- func NewDirectoryPathPtr(msg, path string) *Wrapper
- func NewDirectoryPtr(error error) *Wrapper
- func NewEmptyPathPtr() *Wrapper
- func NewErrUsingAllParams(errType errtype.Variation, isPrintErrorType bool, err error, ...) Wrapper
- func NewErrUsingAllParamsPtr(errType errtype.Variation, isPrintErrorType bool, err error, ...) *Wrapper
- func NewError(err error) Wrapper
- func NewErrorPlusMsgUsingAllParamsPtr(errType errtype.Variation, isPrintErrorType bool, err error, message string, ...) *Wrapper
- func NewErrorPtr(err error) *Wrapper
- func NewFile(error error) Wrapper
- func NewFilePath(msg, path string) Wrapper
- func NewFilePathPtr(msg, path string) *Wrapper
- func NewFilePtr(error error) *Wrapper
- func NewFromDataModel(model *WrapperDataModel) *Wrapper
- func NewGeneric(error error) Wrapper
- func NewGenericPtr(error error) *Wrapper
- func NewMsgUsingAllParams(errType errtype.Variation, isPrintErrorType bool, message string, ...) Wrapper
- func NewMsgUsingAllParamsPtr(errType errtype.Variation, isPrintErrorType bool, message string, ...) *Wrapper
- func NewPtr(errType errtype.Variation) *Wrapper
- func NewUnknownUsingMessage(msg string, isPrintErrorType bool) Wrapper
- func NewUnknownUsingMessagePtr(msg string, isPrintErrorType bool) *Wrapper
- func NewUsingError(errType errtype.Variation, err error) Wrapper
- func NewUsingErrorAndMessage(err error, msg string) *Wrapper
- func NewUsingErrorPtr(errType errtype.Variation, err error) *Wrapper
- func NewUsingErrorPtrErrorInPtr(errType errtype.Variation, err *error) *Wrapper
- func NewUsingErrorWithoutTypeDisplay(errType errtype.Variation, err error) Wrapper
- func NewUsingErrorWithoutTypeDisplayPtr(errType errtype.Variation, err error) *Wrapper
- func NewUsingMessage(errType errtype.Variation, message string) Wrapper
- func NewUsingMessagePtr(errType errtype.Variation, message string) *Wrapper
- func NewUsingSeparator(errType errtype.Variation, separator string, messages ...string) Wrapper
- func NewUsingSeparatorPtr(errType errtype.Variation, separator string, messages ...string) *Wrapper
- func NewUsingTypeErrorAndMessage(errType errtype.Variation, err error, msg string) *Wrapper
- func (errorWrapper *Wrapper) AsJsonContractsBinder() corejson.JsonContractsBinder
- func (errorWrapper *Wrapper) ClonePtr() *Wrapper
- func (errorWrapper *Wrapper) ConcatNew(err error) *Wrapper
- func (errorWrapper *Wrapper) ConcatNewErrors(errItems ...error) *Wrapper
- func (errorWrapper *Wrapper) ConcatNewMessage(errMsg string) *Wrapper
- func (errorWrapper *Wrapper) ConcatNewMessages(funcName string, errMessages ...string) *Wrapper
- func (errorWrapper *Wrapper) ConcatNewWrapperError(another *Wrapper) *Wrapper
- func (errorWrapper *Wrapper) Error() error
- func (errorWrapper *Wrapper) ErrorString() string
- func (errorWrapper *Wrapper) FullString() string
- func (errorWrapper *Wrapper) FullStringPtr() *string
- func (errorWrapper *Wrapper) GetTypeString() string
- func (errorWrapper *Wrapper) GetTypeVariantStruct() errtype.VariantStructure
- func (errorWrapper *Wrapper) GetTypeWithCodeString() string
- func (errorWrapper *Wrapper) GetTypeWithCodeStringPtr() *string
- func (errorWrapper *Wrapper) HandleError()
- func (errorWrapper *Wrapper) HandleErrorWithMsg(newMessage string)
- func (errorWrapper *Wrapper) HandleErrorWithRefs(newMessage string, refVar, refVal interface{})
- func (errorWrapper *Wrapper) HasError() bool
- func (errorWrapper *Wrapper) IsEmpty() bool
- func (errorWrapper *Wrapper) IsEmptyError() bool
- func (errorWrapper *Wrapper) IsEquals(another *Wrapper) bool
- func (errorWrapper *Wrapper) IsErrorEquals(err error) bool
- func (errorWrapper *Wrapper) IsErrorMessage(msg string, isCaseSensitive bool) bool
- func (errorWrapper *Wrapper) IsErrorMessageContains(msg string, isCaseSensitive bool) bool
- func (errorWrapper *Wrapper) IsErrorMessageEqual(msg string) bool
- func (errorWrapper *Wrapper) IsReferencesEmpty() bool
- func (errorWrapper *Wrapper) IsTypeOf(errType errtype.Variation) bool
- func (errorWrapper *Wrapper) Json() *corejson.Result
- func (errorWrapper *Wrapper) JsonModel() *WrapperDataModel
- func (errorWrapper *Wrapper) JsonModelAny() interface{}
- func (errorWrapper *Wrapper) JsonParseSelfInject(jsonResult *corejson.Result) error
- func (errorWrapper *Wrapper) Log()
- func (errorWrapper *Wrapper) LogFatal()
- func (errorWrapper *Wrapper) MarshalJSON() ([]byte, error)
- func (errorWrapper *Wrapper) ParseInjectUsingJson(jsonResult *corejson.Result) (*Wrapper, error)
- func (errorWrapper *Wrapper) ParseInjectUsingJsonMust(jsonResult *corejson.Result) *Wrapper
- func (errorWrapper *Wrapper) String() string
- func (errorWrapper *Wrapper) StringPtr() *string
- func (errorWrapper *Wrapper) Type() errtype.Variation
- func (errorWrapper *Wrapper) TypeString() *string
- func (errorWrapper *Wrapper) UnmarshalJSON(data []byte) error
- func (errorWrapper *Wrapper) Value() error
- type WrapperDataModel
Constants ¶
This section is empty.
Variables ¶
var ( StaticEmpty = Empty() StaticEmptyPtr = &StaticEmpty )
Functions ¶
func CombineErrorAndMessageToError ¶ added in v0.4.7
final error is nil if err is nil
func CombineErrorsToSingle ¶ added in v0.4.7
nil items will be ignored.
func CombineErrorsToSingleString ¶ added in v0.4.7
nil items will be ignored.
Types ¶
type Wrapper ¶
type Wrapper struct {
// contains filtered or unexported fields
}
func CombineErrorsToSingleWrapper ¶ added in v0.4.7
nil items will be ignored.
func EmptyPrint ¶ added in v0.0.4
func EmptyPrint() Wrapper
func NewDirectory ¶
func NewDirectoryPath ¶
func NewDirectoryPathPtr ¶ added in v0.3.9
func NewDirectoryPtr ¶ added in v0.3.9
func NewEmptyPathPtr ¶ added in v0.3.9
func NewEmptyPathPtr() *Wrapper
func NewErrUsingAllParams ¶
func NewErrUsingAllParamsPtr ¶
func NewErrorPlusMsgUsingAllParamsPtr ¶ added in v0.0.2
func NewErrorPtr ¶ added in v0.1.9
func NewFilePath ¶
func NewFilePathPtr ¶ added in v0.3.9
func NewFilePtr ¶ added in v0.3.9
func NewFromDataModel ¶ added in v0.4.0
func NewFromDataModel( model *WrapperDataModel, ) *Wrapper
func NewGeneric ¶
func NewGenericPtr ¶ added in v0.3.9
func NewMsgUsingAllParams ¶
func NewMsgUsingAllParamsPtr ¶
func NewUnknownUsingMessage ¶
func NewUnknownUsingMessagePtr ¶ added in v0.3.9
func NewUsingErrorAndMessage ¶ added in v0.4.7
func NewUsingErrorPtrErrorInPtr ¶ added in v0.1.9
func NewUsingErrorWithoutTypeDisplayPtr ¶ added in v0.3.9
func NewUsingMessagePtr ¶ added in v0.1.9
func NewUsingSeparator ¶
func NewUsingSeparatorPtr ¶ added in v0.3.9
func NewUsingTypeErrorAndMessage ¶ added in v0.4.7
func (*Wrapper) AsJsonContractsBinder ¶ added in v0.4.9
func (errorWrapper *Wrapper) AsJsonContractsBinder() corejson.JsonContractsBinder
func (*Wrapper) ConcatNew ¶ added in v0.4.7
ConcatNew It will create new errorwrapper.Wrapper and combined error with consts.DefaultErrorLineSeparator
func (*Wrapper) ConcatNewErrors ¶ added in v0.4.7
ConcatNewErrors It will create new errorwrapper.Wrapper and combined errors with consts.DefaultErrorLineSeparator
func (*Wrapper) ConcatNewMessage ¶ added in v0.4.7
ConcatNewMessage It will create new errorwrapper.Wrapper and combined msg with consts.DefaultErrorLineSeparator
func (*Wrapper) ConcatNewMessages ¶ added in v0.4.9
ConcatNewMessages It will create new errorwrapper.Wrapper and combined msg with consts.DefaultErrorLineSeparator
func (*Wrapper) ConcatNewWrapperError ¶ added in v0.4.7
ConcatNewWrapperError Warning : It will not take anything other than error message to combine with.
func (*Wrapper) ErrorString ¶
ErrorString if empty error then returns ""
func (*Wrapper) FullString ¶
func (*Wrapper) FullStringPtr ¶
func (*Wrapper) GetTypeString ¶
func (*Wrapper) GetTypeVariantStruct ¶
func (errorWrapper *Wrapper) GetTypeVariantStruct() errtype.VariantStructure
func (*Wrapper) GetTypeWithCodeString ¶
func (*Wrapper) GetTypeWithCodeStringPtr ¶
func (*Wrapper) HandleError ¶
func (errorWrapper *Wrapper) HandleError()
HandleError Only call panic if has currentError
func (*Wrapper) HandleErrorWithMsg ¶
HandleErrorWithMsg Only call panic if has currentError
func (*Wrapper) HandleErrorWithRefs ¶
func (*Wrapper) IsEmptyError ¶ added in v0.4.9
func (*Wrapper) IsErrorEquals ¶
func (*Wrapper) IsErrorMessage ¶
IsErrorMessage If error IsEmpty then returns false regardless
func (*Wrapper) IsErrorMessageContains ¶
IsErrorMessageContains If error IsEmpty then returns false regardless
func (*Wrapper) IsErrorMessageEqual ¶
func (*Wrapper) IsReferencesEmpty ¶ added in v0.0.4
func (*Wrapper) JsonModel ¶ added in v0.4.0
func (errorWrapper *Wrapper) JsonModel() *WrapperDataModel
func (*Wrapper) JsonModelAny ¶ added in v0.4.0
func (errorWrapper *Wrapper) JsonModelAny() interface{}
func (*Wrapper) JsonParseSelfInject ¶ added in v0.4.0
func (*Wrapper) MarshalJSON ¶ added in v0.4.0
func (*Wrapper) ParseInjectUsingJson ¶ added in v0.4.0
func (*Wrapper) ParseInjectUsingJsonMust ¶ added in v0.4.0
Panic if error
func (*Wrapper) TypeString ¶
func (*Wrapper) UnmarshalJSON ¶ added in v0.4.0
type WrapperDataModel ¶ added in v0.4.0
type WrapperDataModel struct { IsPrintErrorType bool CurrentError string References *refs.Collection ErrorType errtype.Variation HasError bool }
func NewDataModel ¶ added in v0.4.0
func NewDataModel(wrapper *Wrapper) *WrapperDataModel