Let us walk on the 3-isogeny graph
|
Public Member Functions | |
None | __init__ (self, *'Literal["error", "warning"]' kind="error", Optional[str] reference=None, Union[str, Text] message, Optional[Union[str, Text]] context, Optional[Union[str, Text]] hint_stmt, Optional[Union[str, Text]] note_stmt=None, Optional[str] link=None) |
str | __repr__ (self) |
RenderResult | __rich_console__ (self, Console console, ConsoleOptions options) |
Data Fields | |
kind | |
reference | |
message | |
context | |
note_stmt | |
hint_stmt | |
link | |
Static Public Attributes | |
str | reference |
An error, that presents diagnostic information to the user. This contains a bunch of logic, to enable pretty presentation of our error messages. Each error gets a unique reference. Each error can also include additional context, a hint and/or a note -- which are presented with the main error message in a consistent style. This is adapted from the error output styling in `sphinx-theme-builder`.
Definition at line 61 of file exceptions.py.
None __init__ | ( | self, | |
*'Literal["error", "warning"]' | kind = "error" , |
||
Optional[str] | reference = None , |
||
Union[str, Text] | message, | ||
Optional[Union[str, Text]] | context, | ||
Optional[Union[str, Text]] | hint_stmt, | ||
Optional[Union[str, Text]] | note_stmt = None , |
||
Optional[str] | link = None |
||
) |
Reimplemented in InstallationSubprocessError, MissingPyProjectBuildRequires, InvalidPyProjectBuildRequires, MetadataGenerationFailed, and ExternallyManagedEnvironment.
Definition at line 74 of file exceptions.py.
References pip._internal.exceptions._is_kebab_case(), i, DiagnosticPipError.reference, MissingPyProjectBuildRequires.reference, InvalidPyProjectBuildRequires.reference, InstallationSubprocessError.reference, MetadataGenerationFailed.reference, and ExternallyManagedEnvironment.reference.
Referenced by Protocol.__init_subclass__().
str __repr__ | ( | self | ) |
Definition at line 104 of file exceptions.py.
RenderResult __rich_console__ | ( | self, | |
Console | console, | ||
ConsoleOptions | options | ||
) |
Definition at line 115 of file exceptions.py.
References pip._internal.exceptions._prefix_with_indent(), DiagnosticPipError.context, Distribution.context, WrappedSocket.context, DiagnosticPipError.hint_stmt, i, DiagnosticPipError.kind, TempDirectory.kind, CacheEntry.link, DiagnosticPipError.link, LinkSource.link(), _FlatDirectorySource.link(), _LocalFileSource.link(), _RemoteFileSource.link(), _IndexDirectorySource.link(), InstallationCandidate.link, RequirementParts.link, InstallRequirement.link, Style.link, Style.link(), DiagnosticPipError.message, BackendInvalid.message, InvalidResponse.message, and DiagnosticPipError.note_stmt.
context |
Definition at line 95 of file exceptions.py.
Referenced by DiagnosticPipError.__rich_console__(), WrappedSocket._evaluate_trust(), Distribution._get_requirements(), WrappedSocket._set_alpn_protocols(), WrappedSocket._set_ciphers(), WrappedSocket.close(), WrappedSocket.getpeercert(), WrappedSocket.handshake(), WrappedSocket.recv_into(), WrappedSocket.send(), WrappedSocket.shutdown(), and WrappedSocket.version().
hint_stmt |
Definition at line 98 of file exceptions.py.
Referenced by DiagnosticPipError.__rich_console__().
kind |
Definition at line 91 of file exceptions.py.
Referenced by DiagnosticPipError.__rich_console__().
link |
Definition at line 100 of file exceptions.py.
Referenced by InstallationCandidate.__repr__(), DiagnosticPipError.__rich_console__(), InstallationCandidate.__str__(), InstallRequirement.__str__(), InstallRequirement.hashes(), InstallRequirement.is_wheel(), InstallRequirement.unpacked_source_directory(), and InstallRequirement.update_editable().
message |
Definition at line 94 of file exceptions.py.
Referenced by InvalidResponse.__rich__(), and DiagnosticPipError.__rich_console__().
note_stmt |
Definition at line 97 of file exceptions.py.
Referenced by DiagnosticPipError.__rich_console__().
|
static |
Definition at line 72 of file exceptions.py.
Referenced by DiagnosticPipError.__init__().
reference |
Definition at line 92 of file exceptions.py.
Referenced by DiagnosticPipError.__init__().