Skip to content

Commit 9ff9d5d

Browse files
committed
Document custom exceptions
1 parent 7b18c0a commit 9ff9d5d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/fastapi_oauth2/exceptions.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22

33

44
class OAuth2Error(HTTPException):
5-
...
5+
"""Base OAuth2 exception."""
66

77

88
class OAuth2AuthenticationError(OAuth2Error):
9-
...
9+
"""Raised when authentication fails."""
1010

1111

1212
class OAuth2BadCredentialsError(OAuth2Error):
13-
...
13+
"""Raised when credentials are invalid."""
1414

1515

1616
class OAuth2InvalidRequestError(OAuth2Error):
17-
...
17+
"""Raised when request is invalid."""

0 commit comments

Comments
 (0)