package connector_throttle

import "errors"

// ErrCredentialNotAvailable is returned by Throttle when the credential is
// missing, when its OwnerPack is inactive, or when the bucket is configured
// with infinite burst (shouldn't happen in practice, but fail-closed on
// reservation.OK() == false).
var ErrCredentialNotAvailable = errors.New("connector throttle: credential not available")

// ErrInvalidEndpointClass is returned by Throttle when endpointClass is empty
// after canonicalization (lower+trim). A blank endpointClass would skip every
// pack-authored _System_ConnectorRateLimit row, fall back to the default quota,
// and get a separate empty-class bucket — bypassing the pack-metadata SSoT.
// Throttle fails closed instead (codex Review PR #1537 round 2 HIGH).
var ErrInvalidEndpointClass = errors.New("connector throttle: endpoint class is required")
