emperror v0.30.0 Release Notes
Release Date: 2020-01-13 // about 4 years ago-
โ Added
ErrorHandler
interfaceErrorHandlerContext
interfaceErrorHandlerSet
interface (combination ofErrorHandler
andErrorHandlerContext
)ErrorHandlers
error handler listErrorHandlerFunc
error handler function wrapperErrorHandlerContextFunc
error handler function wrapperNoopHandler
no-op error handler- โ
TestErrorHandler
,TestErrorHandlerContext
,TestErrorHandlerSet
test error handlers
๐ Changed
ErrorMatcher
is now a simple function type:func(err error) bool
(Breaking change)- Error handlers created using composition (
WithDetails
,WithFilter
) now returnErrorHandlerSet
- โก๏ธ Updated errors packages
๐ Deprecated
Handler
interface. UseErrorHandler
instead.ContextAwareHandler
interface. UseErrorHandlerContext
instead.Handlers
error handler list. UseErrorHandlers
instead.HandlerFunc
error handler function wrapper. UseErrorHandlerFunc
instead.Handle
helper function. UserErrorHandler.Handle
instead.NewNoopHandler
no-op error handler. UseNoopHandler
instead.- 0๏ธโฃ
MakeContextAware
error handler context wrapper. No replacement. (Error handlers are by default context aware) - โ
TestHandler
test error handler. UseTestErrorHandler
instead.