Files
go-honeybee/initiator/errors.go
2026-04-18 10:59:45 -04:00

18 lines
390 B
Go

package initiator
import "errors"
import "fmt"
var (
InvalidReconnectTimeout = errors.New("idle timeout cannot be negative")
InvalidMaxQueueSize = errors.New("maximum queue size cannot be negative")
)
func NewConfigError(text string) error {
return fmt.Errorf("configuration error: %s", text)
}
func NewPoolError(text string) error {
return fmt.Errorf("pool error: %s", text)
}