 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextDone ¶
func DiscardAndClose ¶
func DiscardAndClose(r io.ReadCloser, e *error)
func NewUserError ¶
func NewUserErrorWithCause ¶
Types ¶
type ErrReporter ¶
type ErrReporter interface {
	// HandleProcessingError can be used to handle errors occurring while processing a request.
	// If err is a (or wraps a) errz.UserError, it might be handled specially.
	HandleProcessingError(ctx context.Context, log *zap.Logger, msg string, err error, fields ...fieldz.Field)
}
    ErrReporter provides a way to report errors.
type UserError ¶
type UserError struct {
	// Message is a textual description of what's wrong.
	// Must be suitable to show to the user.
	Message string
	// Cause optionally holds an underlying error.
	Cause error
}
    UserError is an error that happened because the user messed something up: - invalid syntax - invalid configuration
 Click to show internal directories. 
   Click to hide internal directories.