aboutsummaryrefslogtreecommitdiff
path: root/lib/Matrix/Client/Exception.pm6
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Matrix/Client/Exception.pm6')
-rw-r--r--lib/Matrix/Client/Exception.pm66
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Matrix/Client/Exception.pm6 b/lib/Matrix/Client/Exception.pm6
index 924eece..e02f572 100644
--- a/lib/Matrix/Client/Exception.pm6
+++ b/lib/Matrix/Client/Exception.pm6
@@ -7,4 +7,10 @@ package X::Matrix {
"$!code: $!error"
}
}
+
+ class MXCParse is Exception {
+ has $.uri;
+
+ method message { "Cannot parse '$!uri'" }
+ }
}