Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddErrorContext ¶
AddErrorContext adds a context to an error
func GetErrorContext ¶
GetErrorContext returns the error context
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
func (Error) WithContext ¶
AddErrorContext adds a context to an error
type Kind ¶
type Kind uint
const ( Other Kind = iota // Unclassified error. This value is not printed in the error message. Invalid // Invalid operation for this type of item. Permission // Permission denied. IO // External I/O error such as network failure. Exist // Item already exists. NotExist // Item does not exist. IsDir // Item is a directory. NotDir // Item is not a directory. NotEmpty // Directory not empty. Private // Information withheld. Internal // Internal error or inconsistency. CannotDecrypt // No wrapped key for user with read access. Transient // A transient error. BrokenLink // Link target does not exist. Timeout // Link target does not exist. Database BadRequest BadConnectString BadCommand Runtime Check )
Click to show internal directories.
Click to hide internal directories.