Documentation
¶
Index ¶
- Variables
- type 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 NewErrUsingAllParams(errType errtype.Variation, isPrintErrorType bool, err error, ...) Wrapper
- func NewErrUsingAllParamsPtr(errType errtype.Variation, isPrintErrorType bool, err error, ...) *Wrapper
- func NewError(error error) Wrapper
- func NewErrorPlusMsgUsingAllParamsPtr(errType errtype.Variation, isPrintErrorType bool, err error, message string, ...) *Wrapper
- func NewErrorPtr(error error) *Wrapper
- func NewFile(error error) Wrapper
- func NewFilePath(msg, path string) Wrapper
- func NewGeneric(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 NewUsingError(errType errtype.Variation, error error) Wrapper
- func NewUsingErrorPtr(errType errtype.Variation, error error) *Wrapper
- func NewUsingErrorPtrErrorInPtr(errType errtype.Variation, error *error) *Wrapper
- func NewUsingErrorWithoutTypeDisplay(errType errtype.Variation, error 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 (errorWrapper *Wrapper) ClonePtr() *Wrapper
- func (errorWrapper *Wrapper) Error() error
- func (errorWrapper *Wrapper) ErrorPtr() *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) 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) String() string
- func (errorWrapper *Wrapper) StringPtr() *string
- func (errorWrapper *Wrapper) Type() errtype.Variation
- func (errorWrapper *Wrapper) TypeString() *string
- func (errorWrapper *Wrapper) Value() *error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( StaticEmpty = Empty() StaticEmptyPtr = &StaticEmpty )
Functions ¶
This section is empty.
Types ¶
type Wrapper ¶
type Wrapper struct {
// contains filtered or unexported fields
}
func EmptyPrint ¶ added in v0.0.4
func EmptyPrint() Wrapper
func NewDirectory ¶
func NewDirectoryPath ¶
func NewErrUsingAllParams ¶
func NewErrUsingAllParamsPtr ¶
func NewErrorPlusMsgUsingAllParamsPtr ¶ added in v0.0.2
func NewErrorPtr ¶ added in v0.1.9
func NewFilePath ¶
func NewGeneric ¶
func NewMsgUsingAllParams ¶
func NewMsgUsingAllParamsPtr ¶
func NewUnknownUsingMessage ¶
func NewUsingErrorPtrErrorInPtr ¶ added in v0.1.9
func NewUsingMessagePtr ¶ added in v0.1.9
func NewUsingSeparator ¶
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()
Only call panic if has currentError
func (*Wrapper) HandleErrorWithMsg ¶
Only call panic if has currentError
func (*Wrapper) HandleErrorWithRefs ¶
func (*Wrapper) IsErrorEquals ¶
func (*Wrapper) IsErrorMessage ¶
If error IsEmpty then returns false regardless
func (*Wrapper) IsErrorMessageContains ¶
If error IsEmpty then returns false regardless
func (*Wrapper) IsErrorMessageEqual ¶
func (*Wrapper) IsReferencesEmpty ¶ added in v0.0.4
func (*Wrapper) TypeString ¶
Click to show internal directories.
Click to hide internal directories.