aboutsummaryrefslogtreecommitdiff
path: root/lib/Config/Exception
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2017-04-23 21:24:26 +0200
committerPatrick Spek <p.spek@tyil.nl>2017-04-23 21:24:26 +0200
commit9687382b803ec0dc5a7dd55be88b53a4264215f9 (patch)
treee522d65c4555acabcc282e87e6c75a799bd3aa38 /lib/Config/Exception
Initial commit
Diffstat (limited to 'lib/Config/Exception')
-rw-r--r--lib/Config/Exception/FileNotFoundException.pm611
-rw-r--r--lib/Config/Exception/UnimplementedMethodException.pm611
-rw-r--r--lib/Config/Exception/UnknownTypeException.pm611
-rw-r--r--lib/Config/Exception/UnsupportedTypeException.pm611
4 files changed, 44 insertions, 0 deletions
diff --git a/lib/Config/Exception/FileNotFoundException.pm6 b/lib/Config/Exception/FileNotFoundException.pm6
new file mode 100644
index 0000000..74d7bc1
--- /dev/null
+++ b/lib/Config/Exception/FileNotFoundException.pm6
@@ -0,0 +1,11 @@
+#! /usr/bin/env false
+
+use v6.c;
+
+class Config::Exception::FileNotFoundException is Exception
+{
+ method message()
+ {
+ "Could not find file"
+ }
+}
diff --git a/lib/Config/Exception/UnimplementedMethodException.pm6 b/lib/Config/Exception/UnimplementedMethodException.pm6
new file mode 100644
index 0000000..ae87db9
--- /dev/null
+++ b/lib/Config/Exception/UnimplementedMethodException.pm6
@@ -0,0 +1,11 @@
+#! /usr/bin/env false
+
+use v6.c;
+
+class Config::Exception::UnimplementedMethodException is Exception
+{
+ method message()
+ {
+ "This method is not implemented"
+ }
+}
diff --git a/lib/Config/Exception/UnknownTypeException.pm6 b/lib/Config/Exception/UnknownTypeException.pm6
new file mode 100644
index 0000000..de58755
--- /dev/null
+++ b/lib/Config/Exception/UnknownTypeException.pm6
@@ -0,0 +1,11 @@
+#! /usr/bin/env false
+
+use v6.c;
+
+class Config::Exception::UnknownTypeException is Exception
+{
+ method message()
+ {
+ "Could not deduce loader type."
+ }
+}
diff --git a/lib/Config/Exception/UnsupportedTypeException.pm6 b/lib/Config/Exception/UnsupportedTypeException.pm6
new file mode 100644
index 0000000..c2f6f10
--- /dev/null
+++ b/lib/Config/Exception/UnsupportedTypeException.pm6
@@ -0,0 +1,11 @@
+#! /usr/bin/env false
+
+use v6.c;
+
+class Config::Exception::UnsupportedTypeException is Exception
+{
+ method message()
+ {
+ "No parser support for the given file. Have you imported a correct parser?"
+ }
+}