diff options
author | Matias Linares <matiaslina@gmail.com> | 2020-05-17 20:09:38 -0300 |
---|---|---|
committer | Matias Linares <matiaslina@gmail.com> | 2020-05-17 20:09:38 -0300 |
commit | 4823babb29e8d2c2f65b775e72210aac7a2175c5 (patch) | |
tree | 7433d7c5c662e4ebea5b55349a1e34632bcc8030 /lib/Matrix/Client/Exception.pm6 | |
parent | ba413134ddcc6177b3673ba18d0035d78714e3fe (diff) | |
download | perl6-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.pm6 | 6 |
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'" } + } } |