blob: f814bbcfdf8743b5f7de9af0d390f853c239be24 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
=begin pod
=TITLE Matrix::Client::Exception
=SUBTITLE Module for all exceptions.
=head1 X::Matrix::Response
Error querying the matrix server
class X::Matrix::Response is Exception
Error class when the matrix server returns an error code (4XX).
=head2 METHODS
=head3 code
Returns the HTTP error code.
=head3 error
Returns a C<Str> with the matrix error. A full list of error codes can be
found in the L<matrix spec|https://matrix.org/docs/spec/client_server/r0.4.0.html#api-standards>.
=head3 message
method message(--> Str)
Returns the exception message.
=head1 X::Matrix::MXCParse
Error while parsing a L<Matrix Content (MXC) URI|https://matrix.org/docs/spec/client_server/r0.6.1#matrix-content-mxc-uris>.
class X::Matrix::MXCParse is Exception
=head2 METHODS
=head3 code
Returns the URI that failed to parse.
=head3 message
method message(--> Str)
Returns the exception message.
=end pod
|