From 7d6bcd42ea9efced6200cf94924aa38bed2dbb02 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 21 Sep 2022 20:46:45 +0200 Subject: wallet-core: use numeric status field to allow range queries --- packages/taler-wallet-core/src/util/invariants.ts | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'packages/taler-wallet-core/src/util/invariants.ts') diff --git a/packages/taler-wallet-core/src/util/invariants.ts b/packages/taler-wallet-core/src/util/invariants.ts index b788d044e..3598d857c 100644 --- a/packages/taler-wallet-core/src/util/invariants.ts +++ b/packages/taler-wallet-core/src/util/invariants.ts @@ -14,6 +14,13 @@ GNU Taler; see the file COPYING. If not, see */ +export class InvariantViolatedError extends Error { + constructor(message?: string) { + super(message); + Object.setPrototypeOf(this, InvariantViolatedError.prototype); + } +} + /** * Helpers for invariants. */ -- cgit v1.2.3