From bb450bd96b02b48ed8b277fa0a6ca5c97037a680 Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Sat, 4 Jul 2020 13:46:25 +0200 Subject: Overhaul Config to 3.0.0 --- lib/X/Config/FileNoExtension.rakumod | 38 ++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 lib/X/Config/FileNoExtension.rakumod (limited to 'lib/X/Config/FileNoExtension.rakumod') diff --git a/lib/X/Config/FileNoExtension.rakumod b/lib/X/Config/FileNoExtension.rakumod new file mode 100644 index 0000000..7bf30f4 --- /dev/null +++ b/lib/X/Config/FileNoExtension.rakumod @@ -0,0 +1,38 @@ +#! /usr/bin/env false + +use v6.d; + +unit class X::Config::FileNoExtension is Exception; + +has IO::Path $.path; + +method message +{ + "The file at $!path does not have an extension, so no Config::Parser implementation can be deduced for it. Try setting an explicit parser." +} + +=begin pod + +=NAME X::Config::FileNoExtension +=VERSION 3.0.0 +=AUTHOR Patrick Spek + +=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 -- cgit v1.1