Skip to content

Commit f4f9dbd

Browse files
committed
Fixed errors backward compatibility
1 parent a549583 commit f4f9dbd

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

fastopenapi/error_handler.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,20 @@
77
DeprecationWarning,
88
stacklevel=2,
99
)
10+
11+
# Export classes for backward compatibility but hide from IDE autocomplete
12+
from fastopenapi.errors import ( # noqa: F401, E402
13+
APIError,
14+
AuthenticationError,
15+
AuthorizationError,
16+
BadRequestError,
17+
CircularDependencyError,
18+
DependencyError,
19+
InternalServerError,
20+
ResourceConflictError,
21+
ResourceNotFoundError,
22+
SecurityError,
23+
ServiceUnavailableError,
24+
ValidationError,
25+
ErrorType,
26+
)

0 commit comments

Comments
 (0)