aboutsummaryrefslogtreecommitdiff
path: root/lib/Config/Exception/MissingParserException.pm6
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2017-04-24 11:12:08 +0200
committerPatrick Spek <p.spek@tyil.nl>2023-07-25 02:16:08 +0200
commit1716058c5a97828fd5654354be71ce5adf337e40 (patch)
treeed702ba420a3cda7f39f0b6b249b294f02dca487 /lib/Config/Exception/MissingParserException.pm6
parentfa3d0b5e7c8ce7077e02b6062a7aee74f5159fbc (diff)
Update exceptions with more meaningful messages
Diffstat (limited to 'lib/Config/Exception/MissingParserException.pm6')
-rw-r--r--lib/Config/Exception/MissingParserException.pm613
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/Config/Exception/MissingParserException.pm6 b/lib/Config/Exception/MissingParserException.pm6
new file mode 100644
index 0000000..484026a
--- /dev/null
+++ b/lib/Config/Exception/MissingParserException.pm6
@@ -0,0 +1,13 @@
+#! /usr/bin/env false
+
+use v6.c;
+
+class Config::Exception::MissingParserException is Exception
+{
+ has Str $.parser;
+
+ method message()
+ {
+ "$!parser is not a valid parser. Are you sure its installed?"
+ }
+}