• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

SlowAPI / fast-json-pointer / 3798344209

pending completion
3798344209

push

github

Tristan Sweeney
Clean up a bit

6 of 6 new or added lines in 2 files covered. (100.0%)

285 of 294 relevant lines covered (96.94%)

0.97 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/src/fast_json_pointer/exceptions.py
1
from __future__ import annotations
1✔
2

3
from typing import TYPE_CHECKING
1✔
4

5
if TYPE_CHECKING:  # pragma: no cover
1✔
6
    from .resolver import JsonRef, Operation
7

8

9
class JsonPointerException(Exception):
1✔
10
    """Generic json pointer failure."""
1✔
11

12

13
class ParseException(JsonPointerException):
1✔
14
    """Failure occurred while parsing a json pointer."""
1✔
15

16

17
class CompilationException(JsonPointerException):
1✔
18
    """ "Error while compiling a plan for resolving a json pointer."""
1✔
19

20

21
class ResolutionException(JsonPointerException):
1✔
22
    """Failure occurred while resolving a json pointer."""
1✔
23

24
    def __init__(self, *args, refs: list[JsonRef], remaining: list[Operation]) -> None:
1✔
25
        super().__init__(*args)
1✔
26
        self.refs = refs
1✔
27
        self.remaining = remaining
1✔
28

29

30
class EndOfArrayException(ResolutionException):
1✔
31
    """Reference pointed to the end of a array."""
1✔
32

33

34
class ActionError(JsonPointerException):
1✔
35
    """Failed to execute action"""
1✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc