aboutsummaryrefslogtreecommitdiff
path: root/lib/Net/Hawk/Errors.pm
blob: a06c5cc6b890b6f205eaa36970632c0c3365e64d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package Net::Hawk::Errors {
    use v6;
    class base is Exception {
        has $.text;
        method message { return "{self.text}" }
    }
 
    class BadRequest is base {
        has $.value;
 
        method message {
            return "{ self.text } ({ self.value // '<undef>' })";
        }
    }
 
    class UnAuthorized is base {}
}