# Functions
AppendDetailsMetadata appends the key-value pair to the error details metadata.
AsWithSourceError returns the error as an WithSourceError, if applicable.
CombineMetadata combines the metadata found on an existing error with that given.
DebugAssert is a no-op in non-CI builds.
DebugAssertNotNil is a no-op in non-CI builds.
ForReason returns an ErrorInfo block for a specific error reason as defined in the V1 API.
GetDetails returns the details of the error if they are of the provided type, if any.
IsInTests returns true if go test is running Based on: https://stackoverflow.com/a/58945030.
MustBugf returns an error representing a bug in the system.
MustPanic is a special function for panicing when necessary to violate the linter.
NewTerminationErrorBuilder returns a new ErrorBuilder for a termination.TerminationError.
No description provided by the author
NewWithSourceError creates and returns a new WithSourceError.
RequireReason asserts that an error is a gRPC error and returns the expected reason in the ErrorInfo.
SetFinalizerForDebugging is a no-op in non-CI builds.
WithAdditionalDetails adds an additional details field to the error if it is possible.
WithCodeAndDetails returns a gRPC status message containing the error's message, the given status code and any supplied details.
WithCodeAndDetailsAsError returns an error containing the error's message, the given status code and any supplied details.
WithCodeAndReason returns a new error which wraps the existing error with a gRPC code and a reason block.
WithReplacedDetails replaces the details of the error with the provided details.
# Constants
No description provided by the author
DebugTraceErrorDetailsKey is the key used to store the debug trace in the error details.
Domain is the domain used for all errors.
# Structs
ErrorBuilder is a fluent-style builder for TerminationError.
SourcePosition is a position in the input source.
TerminationError represents an error that captures contextual information to make available on process termination.
WithAdditionalDetailsError is an error that includes additional details.
WithSourceError is an error that includes the source text and position information.
# Interfaces
HasMetadata indicates that the error has metadata defined.
No description provided by the author
No description provided by the author
# Type aliases
MetadataKey is the type used to represent the keys of the metadata map in the error details.