gitlab.com/evatix-go/core@v1.3.55/internal/internalinterface/all-handlers.go (about) 1 package internalinterface 2 3 type ErrorHandler interface { 4 // HandleError 5 // 6 // Only call panic 7 // if it has any error 8 HandleError() 9 } 10 11 type ErrorMessageHandler interface { 12 HandleErrorWithRefs( 13 newMessage string, 14 refVar, 15 refVal interface{}, 16 ) 17 // HandleErrorWithMsg 18 // 19 // Only call panic on has currentError 20 HandleErrorWithMsg(newMessage string) 21 }