# Functions
AddParent add parent to errobj.
AddRuntimeCallerFilter add filters to DefaultRuntimeCallerFilter for RuntimeCaller().
AllNamedFactories return all named factories.
AllSortedNamedFactories return all sorted named factories NOTE: this is slow for sorting in runtime.
ContainErrorFunc check error contain error by custom equalFunc.
FactoryOf return factory of error, return nil if not factory found.
Length count number of ErrorObject and all parents, return -1 if error.
MarshalJSON marshal error to json.
New return a new ErrorObject object.
NewConsoleFormatter create JSONErrorFormatter instance.
NewErrors return ErrorObject that contains all input errors.
NewErrorsSkip return ErrorObject, skip function call.
NewFactory return new ErrorFactory instance.
NewJSON create ErrorJSON.
NewJSONFormatter create JSONFormatter instance.
NewNamedFactory return new ErrorFactory instance with factory name, panic if name duplicated.
RuntimeCaller wrap runtimecaller.GetByFilters() with DefaultRuntimeCallerFilter.
RuntimeCallerFilterStopErrutilPackage filter CallInfo to stop after reach utils/error package.
WalkErrors walk from base error through all parents return ErrorWalkLoop if detected loop.
WriteCallInfo write readable callinfo with options.
# Variables
DefaultRuntimeCallerFilter use for filter error stack info.
errors.
# Structs
ConsoleFormatter used to format error object in console readable.
ErrorJSON is a helper struct for display error.
JSONFormatter used to format error to json.
# Interfaces
ErrorFactory is used for create or check ErrorObject.
ErrorFormatter to format error.
ErrorObject is a rich error interface.
TraceFormatter to trace error occur line formatter.
# Type aliases
WalkFunc is a callback for WalkErrors.