Source code for qval.exceptions

from typing import Union

from . import framework_integration


[docs]class InvalidQueryParamException(framework_integration.APIException): """ An error thrown when param fails the validation. """
[docs] def __init__(self, detail: Union[dict, str], status: int): """ Instantiates the exception. :param detail: dict or string with details :param status: status code """ super().__init__(detail) self.status_code = status
# Avoid circular imports APIException = framework_integration.APIException