import "v2ray.com/core/common/errors"
Package errors is a drop-in replacement for Golang lib 'errors'.
Cause returns the root cause of this error.
GetSeverity returns the actual severity of the error, including inner errors.
type Error struct {
// contains filtered or unexported fields
}
Error is an error object with underlying error.
New returns a new error object with message formed from given arguments.
AtDebug sets the severity to debug.
AtError sets the severity to error.
AtInfo sets the severity to info.
AtWarning sets the severity to warning.
Error implements error.Error().
Inner implements hasInnerError.Inner()
String returns the string representation of this error.
func (err *Error) WriteToLog(opts ...ExportOption)
WriteToLog writes current error into log.
type ExportOption func(*ExportOptionHolder)
Path | Synopsis |
---|---|
errorgen |
Package errors imports 5 packages (graph) and is imported by 628 packages. Updated 2020-10-15. Refresh now. Tools for package owners.