aboutsummaryrefslogtreecommitdiff
path: root/lib/Matrix/Client/Exception.pm6
diff options
context:
space:
mode:
authorMatias Linares <matiaslina@gmail.com>2020-05-17 20:09:38 -0300
committerMatias Linares <matiaslina@gmail.com>2020-05-17 20:09:38 -0300
commit4823babb29e8d2c2f65b775e72210aac7a2175c5 (patch)
tree7433d7c5c662e4ebea5b55349a1e34632bcc8030 /lib/Matrix/Client/Exception.pm6
parentba413134ddcc6177b3673ba18d0035d78714e3fe (diff)
downloadperl6-matrix-client-4823babb29e8d2c2f65b775e72210aac7a2175c5.tar.gz
Add Matrix::Client::MediaStore class
This is to wrap all the endpoints pointing to the media store.
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'" }
+ }
}