OpenQuizz
Une application de gestion des contenus pédagogiques
HashError Class Reference
Inheritance diagram for HashError:
Collaboration diagram for HashError:

Public Member Functions

def body (self)
 
def __str__ (self)
 

Static Public Attributes

 req
 
 head
 
 order
 

Detailed Description

A failure to verify a package against known-good hashes

:cvar order: An int sorting hash exception classes by difficulty of
    recovery (lower being harder), so the user doesn't bother fretting
    about unpinned packages when he has deeper issues, like VCS
    dependencies, to deal with. Also keeps error reports in a
    deterministic order.
:cvar head: A section heading for display above potentially many
    exceptions of this kind
:ivar req: The InstallRequirement that triggered this error. This is
    pasted on after the exception is instantiated, because it's not
    typically available earlier.

Member Function Documentation

◆ __str__()

def __str__ (   self)

◆ body()

def body (   self)
Return a summary of me for display under the heading.

This default implementation simply prints a description of the
triggering requirement.

:param req: The InstallRequirement that provoked this error, with
    its link already populated by the resolver's _populate_link().

Reimplemented in HashMismatch, and HashMissing.

Field Documentation

◆ head

head
static

◆ order

order
static

◆ req

req
static

The documentation for this class was generated from the following file: