Coverage for python / lsst / ctrl / bps / panda / panda_exceptions.py: 100%

12 statements  

« prev     ^ index     » next       coverage.py v7.13.5, created at 2026-05-01 08:24 +0000

1class PandaAuthError(Exception): 

2 """Base class for authentication errors.""" 

3 

4 pass 

5 

6 

7class TokenNotFoundError(PandaAuthError): 

8 """Raised when the token file is missing.""" 

9 

10 pass 

11 

12 

13class TokenExpiredError(PandaAuthError): 

14 """Raised when the token has already expired.""" 

15 

16 pass 

17 

18 

19class TokenTooEarlyError(PandaAuthError): 

20 """Raised when attempting to refresh too early.""" 

21 

22 pass 

23 

24 

25class AuthConfigError(PandaAuthError): 

26 """Raised when fetching the auth or endpoint configuration fails.""" 

27 

28 pass 

29 

30 

31class TokenRefreshError(PandaAuthError): 

32 """Raised when token refresh fails.""" 

33 

34 pass