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/Parser.pm6 | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
(limited to 'lib/Config/Parser.pm6')
diff --git a/lib/Config/Parser.pm6 b/lib/Config/Parser.pm6
index 23effc0..1a99ad6 100644
--- a/lib/Config/Parser.pm6
+++ b/lib/Config/Parser.pm6
@@ -8,11 +8,15 @@ class Config::Parser
{
method read(Str $path --> Hash)
{
- Config::Exception::UnimplementedMethodException.new.throw();
+ Config::Exception::UnimplementedMethodException.new(
+ method => "read"
+ ).throw();
}
method write(Str $path, Hash $config --> Hash)
{
- Config::Exception::UnimplementedMethodException.new.throw();
+ Config::Exception::UnimplementedMethodException.new(
+ method => "write"
+ ).throw();
}
}
--
cgit v1.1