Skip to content

Commit 23658d3

Browse files
committed
Define the initial set of exceptions
1 parent 43bf9d7 commit 23658d3

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

src/fastapi_oauth2/exceptions.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
from starlette.exceptions import HTTPException
22

33

4-
class OAuth2LoginError(HTTPException):
5-
"""Raised when any login-related error occurs."""
4+
class OAuth2Error(HTTPException):
5+
...
6+
7+
8+
class OAuth2AuthenticationError(OAuth2Error):
9+
...
10+
11+
12+
class OAuth2BadCredentialsError(OAuth2Error):
13+
...
14+
15+
16+
class OAuth2InvalidRequestError(OAuth2Error):
17+
...

0 commit comments

Comments
 (0)