summaryrefslogtreecommitdiff
path: root/lib/Matrix/Client/Exception.pm6
blob: e02f572915fd0238ed8683f64b057b9379e9fe01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package X::Matrix {
    class Response is Exception {
        has $.code;
        has $.error;

        method message {
            "$!code: $!error"
        }
    }

    class MXCParse is Exception {
        has $.uri;

        method message { "Cannot parse '$!uri'" }
    }
}