summaryrefslogtreecommitdiff
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.pm610
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/Matrix/Client/Exception.pm6 b/lib/Matrix/Client/Exception.pm6
new file mode 100644
index 0000000..924eece
--- /dev/null
+++ b/lib/Matrix/Client/Exception.pm6
@@ -0,0 +1,10 @@
+package X::Matrix {
+ class Response is Exception {
+ has $.code;
+ has $.error;
+
+ method message {
+ "$!code: $!error"
+ }
+ }
+}