aboutsummaryrefslogtreecommitdiff
path: root/lib/X/Config/FileNotFound.rakumod
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2020-07-04 13:46:25 +0200
committerPatrick Spek <p.spek@tyil.nl>2023-07-25 02:17:24 +0200
commitbb450bd96b02b48ed8b277fa0a6ca5c97037a680 (patch)
tree974bf72d443dbf0d1bffea29793becee806b43bc /lib/X/Config/FileNotFound.rakumod
parent86d3fe57ceb163d9ff31d131568f4a9caca8bbc5 (diff)
Overhaul Config to 3.0.0
Diffstat (limited to 'lib/X/Config/FileNotFound.rakumod')
-rw-r--r--lib/X/Config/FileNotFound.rakumod38
1 files changed, 38 insertions, 0 deletions
diff --git a/lib/X/Config/FileNotFound.rakumod b/lib/X/Config/FileNotFound.rakumod
new file mode 100644
index 0000000..68ae347
--- /dev/null
+++ b/lib/X/Config/FileNotFound.rakumod
@@ -0,0 +1,38 @@
+#! /usr/bin/env false
+
+use v6.d;
+
+unit class X::Config::FileNotFound is Exception;
+
+has IO::Path $.path;
+
+method message
+{
+ "Could not find file at $!path.absolute()"
+}
+
+=begin pod
+
+=NAME X::Config::FileNotFound
+=VERSION 3.0.0
+=AUTHOR Patrick Spek <p.spek@tyil.work>
+
+=begin LICENSE
+Copyright © 2020
+
+This program is free software: you can redistribute it and/or modify it under
+the terms of the GNU Lesser General Public License as published by the Free
+Software Foundation, version 3.
+
+This program is distributed in the hope that it will be useful, but WITHOUT ANY
+WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+details.
+
+You should have received a copy of the GNU Lesser General Public License along
+with this program. If not, see http://www.gnu.org/licenses/.
+=end LICENSE
+
+=end pod
+
+# vim: ft=raku noet sw=8 ts=8