package
0.0.0-20240624235250-9e89dfb7520d
Repository: https://github.com/tailscale/pkgsitelib.git
Documentation: pkg.go.dev

# Functions

Add adds context to the error.
FromStatus generates an error according for the given status code.
NewStackError returns a StackError, capturing a stack trace.
Report uses the Reporter to report an error.
SetReporter the Reporter to use, for use by Report.
ToReprocessStatus returns the reprocess status code corresponding to the provided status.
ToStatus returns a status code corresponding to err.
Wrap adds context to the error and allows unwrapping the result to recover the original error.
WrapAndReport calls Wrap followed by Report.
WrapStack is like Wrap, but adds a stack trace if there isn't one already.

# Variables

AlternativeModule indicates that the path of the module zip file differs from the path specified in the go.mod file.
BadModule indicates a problem with a module.
Cleaned indicates that the module version was cleaned from the DB and shouldn't be reprocessed.
DBModuleInsertInvalid represents a module that was successfully fetched but could not be inserted due to invalid arguments to postgres.InsertModule.
Excluded indicates that the module is excluded.
HasIncompletePackages indicates a module containing packages that were processed with a 60x error code.
InvalidArgument indicates that the input into the request is invalid in some way (HTTP 400).
ModuleTooLarge indicates that the module is too large for us to process.
NotFetched means that the proxy returned "not found" with the Disable-Module-Fetch header set.
NotFound indicates that a requested entity was not found (HTTP 404).
PackageBadImportPath represents an error loading a package because its contents do not make up a valid package.
PackageBuildContextNotSupported indicates that the build context for the package is not supported.
PackageDocumentationHTMLTooLarge indicates that the rendered documentation HTML size exceeded the specified limit for dochtml.RenderOptions.
PackageInvalidContents represents an error loading a package because its contents do not make up a valid package.
PackageMaxFileSizeLimitExceeded indicates that the package contains a file that exceeds fetch.MaxFileSize.
PackageMaxImportsLimitExceeded indicates that the package has too many imports.
ProxyError is used to capture non-actionable server errors returned from the proxy.
ProxyTimedOut indicates that a request timed out when fetching from the Module Mirror.
ReprocessAlternativeModule indicates that the module to be reprocessed previously had a status of derrors.AlternativeModule.
ReprocessBadModule indicates that the module to be reprocessed previously had a status of derrors.BadModule.
ReprocessDBModuleInsertInvalid represents a module to be reprocessed that was successfully fetched but could not be inserted due to invalid arguments to postgres.InsertModule.
ReprocessHasIncompletePackages indicates that the module to be reprocessed previously had a status of 290.
ReprocessStatusOK indicates that the module to be reprocessed previously had a status of http.StatusOK.
SheddingLoad indicates that the server is overloaded and cannot process the module at this time.
Unknown indicates that the error has unknown semantics.
Unsupported operation indicates that a requested operation cannot be performed, because it is unsupported.
VulnDBError is used to capture non-actionable server errors returned from vulndb.

# Structs

StackError wraps an error and adds a stack trace.

# Interfaces

Reporter is an interface used for reporting errors.