ExceptionHandler
Class to handle exceptions and return a formatted object to the front
Functions
generate_instance_id @classmethod
Return type :
str handle_exception @classmethod
Convert an exception to a formatted ExceptionResponse.
request :
starlette.requests.Request | None exception :
Exception cors_policy :
gws_core.core.classes.cors_config.CorsPolicy | None Return type :
ExceptionResponse handle_request_validation_error @classmethod
Handle a RequestValidationError exception (error 422 Unprocessable Entity) It returns only the first message
exc :
RequestValidationError