From b01a053e3d4012064a667745634010dd654b4777 Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Mon, 24 Apr 2017 11:12:08 +0200 Subject: Update exceptions with more meaningful messages --- lib/Config/Exception/MissingParserException.pm6 | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 lib/Config/Exception/MissingParserException.pm6 (limited to 'lib/Config/Exception/MissingParserException.pm6') 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?" + } +} -- cgit v1.1