aboutsummaryrefslogtreecommitdiff
path: root/t/50-exception.t
blob: d252153eac6c9d2f5691ebfbd0c26d8e4bc0f3c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
use lib 'lib';
use Test;
use Matrix::Client;
use Matrix::Client::Exception;

plan 1;

my $c = Matrix::Client.new(:home-server<https://matrix.org>);

throws-like {
    $c.get('/unknown-endpoint');
}, X::Matrix::Response, 'Unknown endpoint throws exception';