Skip to content

Glossary: Go in Practice

StockError

A custom error type with `SKU`, `Have` and `Want` fields. It is returned when an order asks for more stock of a product than is left.

Where the book teaches it

Related terms

errors.AsHTTP status codesGuarded update