Files
lincodex/backend/internal/usecase/organization/errors.go
T

23 lines
822 B
Go

package organization
import "errors"
var (
// ErrForbidden reports an account that cannot create or manage an
// organization.
ErrForbidden = errors.New("organization operation forbidden")
// ErrEmailNotVerified reports an account whose current email is not
// confirmed.
ErrEmailNotVerified = errors.New("organization requires a confirmed email")
// ErrIdempotencyKeyReused reports a live key first used with another body.
ErrIdempotencyKeyReused = errors.New("idempotency key reused with a different request")
// ErrInvalidIdempotencyKey reports a key outside the public contract bound.
ErrInvalidIdempotencyKey = errors.New("invalid idempotency key")
// ErrInvalidCreateRequest reports an oversized canonical request body.
ErrInvalidCreateRequest = errors.New("invalid organization create request")
)