sailfork / t3code-github / .repos/ alchemy-effect/ examples/ cloudflare-domain/ packages/ domain/ src/ Account/ InsufficientFunds.rejection.ts
import * as Domain from "@alchemy.run/domain";
import { Cents } from "../Money.ts";
/** The balance does not cover the amount. */
export class InsufficientFunds extends Domain.Rejection("InsufficientFunds", {
balance: Cents,
requested: Cents,
}) {}