Error

enum Error

The errors that have to be handled by the bounded context.

trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Type members

Enum entries

case NotEnoughStock(product: Product, triedQuantity: Quantity, actualQuantity: AvailableQuantity)

An error raised by the removal from stock action if the quantity to be removed from stock exceeds the available one.

An error raised by the removal from stock action if the quantity to be removed from stock exceeds the available one.

case WeightNotInRange(expectedWeight: Grams, actualWeight: Grams)

An error raised by the labelling action if the actual weight is too far from the expected weight.

An error raised by the labelling action if the actual weight is too far from the expected weight.