Documentation ¶
Overview ¶
Package errors implements errors that can be easily sent across the wire and reconstructed at the other end.
Index ¶
Constants ¶
View Source
const ( // UnknownModule is the module name used when the module is unknown. UnknownModule = "unknown" // CodeNoError is the reserved "no error" code. CodeNoError = 0 )
Variables ¶
Re-exports so this package can be used as a replacement for errors.
Functions ¶
func Code ¶
Code returns the module and code for the given error.
In case the error is not of the correct type, default values for an unknown error are returned.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.