blob: 6fb4c75cd509dc30a958c5820faa2c100308847d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
module Matrix::Client::Exception {
class X::Matrix::Response is Exception {
has $.code;
has $.error;
method message(--> Str) {
"$!code: $!error"
}
}
class X::Matrix::MXCParse is Exception {
has $.uri;
method message { "Cannot parse '$!uri'" }
}
}
|