language_models updated
This commit is contained in:
@@ -9,13 +9,14 @@ class ErrorMessages:
|
||||
return cls.__messages__[lang][message_key]
|
||||
|
||||
|
||||
|
||||
class ErrorHandlers:
|
||||
def __init__(self, requests, exceptions, response_model, status):
|
||||
self.requests = requests # from fastapi.requests import Request
|
||||
self.exceptions = exceptions # from fastapi.exceptions import HTTPException
|
||||
self.response_model = response_model # from fastapi.responses import JSONResponse
|
||||
self.status = status # from fastapi import status
|
||||
self.requests = requests # from fastapi.requests import Request
|
||||
self.exceptions = exceptions # from fastapi.exceptions import HTTPException
|
||||
self.response_model = (
|
||||
response_model # from fastapi.responses import JSONResponse
|
||||
)
|
||||
self.status = status # from fastapi import status
|
||||
|
||||
def exception_handler_http(self, request, exc):
|
||||
exc_detail = getattr(exc, "detail", None)
|
||||
|
||||
Reference in New Issue
Block a user