diff options
| author | Árni Dagur <arni@dagur.eu> | 2021-06-26 16:20:29 +0000 |
|---|---|---|
| committer | Árni Dagur <arni@dagur.eu> | 2021-06-26 19:10:50 +0000 |
| commit | fb1832feb868a81e2d10a1707c57df4623304313 (patch) | |
| tree | f77f31d340f19b0e4d96a92ccc23cdeb6b135738 /adblock/adblock.pyi | |
| parent | 0d5c8b8cfa1025c29b96db3c52ff54a7d204923f (diff) | |
Create a custom exception type for this library
Diffstat (limited to 'adblock/adblock.pyi')
| -rw-r--r-- | adblock/adblock.pyi | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/adblock/adblock.pyi b/adblock/adblock.pyi index d977629..0515674 100644 --- a/adblock/adblock.pyi +++ b/adblock/adblock.pyi | |||
| @@ -1,5 +1,26 @@ | |||
| 1 | from typing import Optional, Dict, List, Set | 1 | from typing import Optional, Dict, List, Set |
| 2 | 2 | ||
| 3 | class AdblockException(Exception): | ||
| 4 | pass | ||
| 5 | |||
| 6 | class BlockerException(AdblockException): | ||
| 7 | pass | ||
| 8 | |||
| 9 | class SerializationError(BlockerException): | ||
| 10 | pass | ||
| 11 | |||
| 12 | class DeserializationError(BlockerException): | ||
| 13 | pass | ||
| 14 | |||
| 15 | class OptimizedFilterExistence(BlockerException): | ||
| 16 | pass | ||
| 17 | |||
| 18 | class BadFilterAddUnsupported(BlockerException): | ||
| 19 | pass | ||
| 20 | |||
| 21 | class FilterExists(BlockerException): | ||
| 22 | pass | ||
| 23 | |||
| 3 | class BlockerResult: | 24 | class BlockerResult: |
| 4 | matched: bool | 25 | matched: bool |
| 5 | explicit_cancel: bool | 26 | explicit_cancel: bool |
