aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/test/aedifex
diff options
context:
space:
mode:
authorEduardo Julian2022-08-11 16:50:42 -0400
committerEduardo Julian2022-08-11 16:50:42 -0400
commite5625dd840a8b8adc76987f649da254335d3d93a (patch)
treefb672669383525d90d462edf8c141f98bc953894 /stdlib/source/test/aedifex
parent065e8a4d8122d4616b570496915d2c0e2c78cd6b (diff)
Improved exception-definition macro.
Diffstat (limited to '')
-rw-r--r--stdlib/source/test/aedifex/command/version.lux4
-rw-r--r--stdlib/source/test/aedifex/repository.lux14
2 files changed, 10 insertions, 8 deletions
diff --git a/stdlib/source/test/aedifex/command/version.lux b/stdlib/source/test/aedifex/command/version.lux
index 7d2877738..169b20ef6 100644
--- a/stdlib/source/test/aedifex/command/version.lux
+++ b/stdlib/source/test/aedifex/command/version.lux
@@ -6,7 +6,7 @@
[control
["[0]" maybe]
["[0]" try]
- ["[0]" exception (.only exception)]
+ ["[0]" exception]
[concurrency
["[0]" async (.only Async)]]]
[data
@@ -28,7 +28,7 @@
[\\program
["[0]" /]])
-(exception .public console_is_closed!)
+(exception.def .public console_is_closed!)
(def mock
(Mock [Bit Text])
diff --git a/stdlib/source/test/aedifex/repository.lux b/stdlib/source/test/aedifex/repository.lux
index fbb3ef01b..fd26f3898 100644
--- a/stdlib/source/test/aedifex/repository.lux
+++ b/stdlib/source/test/aedifex/repository.lux
@@ -43,13 +43,15 @@
(-> Version Artifact)
(|>> ["com.github.luxlang" "test-artifact"]))
-(exception (not_found [uri URI])
- (exception.report
- (list ["URI" (%.text uri)])))
+(with_template [<name>]
+ [(exception.def (<name> uri)
+ (Exception URI)
+ (exception.report
+ (list ["URI" (%.text uri)])))]
-(exception (cannot_upload [uri URI])
- (exception.report
- (list ["URI" (%.text uri)])))
+ [not_found]
+ [cannot_upload]
+ )
(type Store
(Dictionary URI Binary))