diff --git a/docs/source/api.rst b/docs/source/api.rst index f520aaa..d98493c 100644 --- a/docs/source/api.rst +++ b/docs/source/api.rst @@ -16,7 +16,7 @@ Custom exceptions ----------------- .. warning:: For any of these errors to work, you need to register the error handlers in your Flask app. - To do this, you can call :meth:`flask_utils.errors.register_error_handlers` with your Flask app as an argument. + To do this, you can call :meth:`register_error_handlers` with your Flask app as an argument. .. code-block:: python diff --git a/flask_utils/decorators.py b/flask_utils/decorators.py index 68960e5..07b4849 100644 --- a/flask_utils/decorators.py +++ b/flask_utils/decorators.py @@ -186,7 +186,7 @@ def validate_params( and the values are the expected types. :param allow_empty: Allow empty values for parameters. Defaults to False. - :raises flask_utils.errors.badrequest.BadRequestError: If the JSON body is malformed, + :raises BadRequestError: If the JSON body is malformed, the Content-Type header is missing or incorrect, required parameters are missing, or parameters are of the wrong type. diff --git a/flask_utils/errors/__init__.py b/flask_utils/errors/__init__.py index 13c55e9..91c87a9 100644 --- a/flask_utils/errors/__init__.py +++ b/flask_utils/errors/__init__.py @@ -24,8 +24,8 @@ def _register_error_handlers(application: Flask) -> None: .. versionchanged:: 0.5.0 Made the function private. If you want to register the custom error handlers, you need to - pass `register_error_handlers=True` to the :class:`flask_utils.extension.FlaskUtils` class - or to :meth:`flask_utils.extension.FlaskUtils.init_app` + pass `register_error_handlers=True` to the :class:`FlaskUtils` class + or to :meth:`FlaskUtils.init_app` .. code-block:: python