Skip to content

ResponseError

Base classes

Name Children Inherits
HttpError
anyenv.download.exceptions
Base class for HTTP errors.

⋔ Inheritance diagram

graph TD
  3085998664["exceptions.ResponseError"]
  3376066665["exceptions.HttpError"]
  1615621424["builtins.Exception"]
  3224121899["builtins.BaseException"]
  2751680898["builtins.object"]
  3376066665 --> 3085998664
  1615621424 --> 3376066665
  3224121899 --> 1615621424
  2751680898 --> 3224121899

🛈 DocStrings

Bases: HttpError

Exception raised when a response contains an error status code.

Source code in src/anyenv/download/exceptions.py
class ResponseError(HttpError):
    """Exception raised when a response contains an error status code."""

    def __init__(self, message: str, response: HttpResponse) -> None:
        super().__init__(message, response)
        self.status_code = response.status_code

:fa-brands-github: Show source on GitHub