Skip to content

HttpError

Sub classes

Name Children Inherits
RequestError
anyenv.download.exceptions
Exception raised when a request fails due to network or connection issues.
    ResponseError
    anyenv.download.exceptions
    Exception raised when a response contains an error status code.

      Base classes

      Name Children Inherits
      Exception
      builtins
      Common base class for all non-exit exceptions.

      ⋔ Inheritance diagram

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

      🛈 DocStrings

      Bases: Exception

      Base class for HTTP errors.

      Source code in src/anyenv/download/exceptions.py
      class HttpError(Exception):
          """Base class for HTTP errors."""
      
          def __init__(self, message: str, response: HttpResponse | None = None) -> None:
              super().__init__(message)
              self.response = response
      

      :fa-brands-github: Show source on GitHub