Versions in this module Expand all Collapse all v0 v0.1.1 Oct 15, 2023 Changes in this version + var ErrBadPoolConn = errors.New("connection is closed by peer while being in the connection pool") + var ErrBodyTooLarge = errors.New("body size exceeds the given limit") + var ErrChunkedStream = errors.New("chunked stream") + var ErrConnectionClosed = errors.New("connection closed") + var ErrHijacked = errors.New("connection has been hijacked") + var ErrIdleTimeout = errors.New("idle timeout") + var ErrNeedMore = errors.New("need more data") + var ErrNoFreeConns = errors.New("no free connections available to host") + var ErrNoMultipartForm = errors.New("request has no multipart/form-data Content-Type") + var ErrNotSupportProtocol = errors.New("not support protocol") + var ErrNothingRead = errors.New("nothing read") + var ErrShortConnection = errors.New("short connection") + var ErrTimeout = errors.New("timeout") + type Error struct + Err error + Meta interface{} + Type ErrorType + func New(err error, t ErrorType, meta interface{}) *Error + func NewPrivate(err string) *Error + func NewPrivatef(format string, v ...interface{}) *Error + func NewPublic(err string) *Error + func NewPublicf(format string, v ...interface{}) *Error + func Newf(t ErrorType, meta interface{}, format string, v ...interface{}) *Error + func (msg *Error) Error() string + func (msg *Error) IsType(flags ErrorType) bool + func (msg *Error) JSON() interface{} + func (msg *Error) SetMeta(data interface{}) *Error + func (msg *Error) SetType(flags ErrorType) *Error + func (msg *Error) Unwrap() error + type ErrorChain []*Error + func (a ErrorChain) ByType(typ ErrorType) ErrorChain + func (a ErrorChain) Errors() []string + func (a ErrorChain) JSON() interface{} + func (a ErrorChain) Last() *Error + func (a ErrorChain) String() string + type ErrorType uint64 + const ErrorTypeAny + const ErrorTypeBind + const ErrorTypePrivate + const ErrorTypePublic + const ErrorTypeRender