Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | List of all members
pip._internal.exceptions.HashError Class Reference
Inheritance diagram for pip._internal.exceptions.HashError:
Inheritance graph
[legend]
Collaboration diagram for pip._internal.exceptions.HashError:
Collaboration graph
[legend]

Public Member Functions

str body (self)
 
str __str__ (self)
 

Public Attributes

 req
 

Static Public Attributes

Optional req = None
 
str head = ""
 
int order = -1
 

Protected Member Functions

str _requirement_name (self)
 

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

◆ _requirement_name()

str pip._internal.exceptions.HashError._requirement_name (   self)
protected
Return a description of the requirement that triggered me.

This default implementation returns long description of the req, with
line numbers

◆ body()

str pip._internal.exceptions.HashError.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 pip._internal.exceptions.HashMissing, and pip._internal.exceptions.HashMismatch.


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