Documentation ¶
Index ¶
- Variables
- func CombineByString(err error) error
- func ErrorContains(err error, substr string) bool
- func ErrorContainsAny(err error, substrs ...string) bool
- func Flatten(err error) []error
- func HandleErrDefer(f func() error)
- func IsAny(err error, errs ...error) bool
- func IsErrorExcept(err error, errs ...error) bool
- func IsErrorExceptSubstr(err error, substr ...string) bool
- func Join(errs ...error) error
- func MakeErrorMessage(message string) string
- func Root(err error) error
- func Roots(errs []error) error
- func Unwraps(err error) []error
- func Wrap(err error, msg string) error
- func WrapAndTrace2[T any](t T, err error) (T, error)
- func WrapAndTraceInMsg(err error) error
- type BrevError
- type CredentialsFileNotFound
- type DeclineToLoginError
- type ErrReportBreadCrumb
- type ErrorReporter
- type ErrorUser
- type SentryErrorReporter
- func (s SentryErrorReporter) AddBreadCrumb(bc ErrReportBreadCrumb)
- func (s SentryErrorReporter) AddTag(key string, value string)
- func (s SentryErrorReporter) Flush()
- func (s SentryErrorReporter) ReportError(e error) string
- func (s SentryErrorReporter) ReportMessage(msg string) string
- func (s SentryErrorReporter) SetUser(user ErrorUser)
- func (s SentryErrorReporter) Setup() func()
- type ValidationError
- type WorkspaceNotRunning
Constants ¶
This section is empty.
Variables ¶
View Source
var As = stderrors.As
View Source
var Errorf = fmt.Errorf
View Source
var Is = stderrors.Is
View Source
var NetworkErrorMessage = "possible internet connection problem"
View Source
var New = stderrors.New
View Source
var Unwrap = stderrors.Unwrap
View Source
var WrapAndTrace = WrapAndTraceInMsg
Functions ¶
func CombineByString ¶ added in v0.6.288
if multi err, combine similar errors
func ErrorContains ¶ added in v0.6.288
func ErrorContainsAny ¶ added in v0.6.288
func HandleErrDefer ¶ added in v0.6.288
func HandleErrDefer(f func() error)
func IsErrorExcept ¶ added in v0.6.288
func IsErrorExceptSubstr ¶ added in v0.6.288
func MakeErrorMessage ¶
func WrapAndTrace2 ¶ added in v0.6.288
func WrapAndTraceInMsg ¶ added in v0.6.288
Types ¶
type CredentialsFileNotFound ¶
type CredentialsFileNotFound struct{}
func (*CredentialsFileNotFound) Directive ¶
func (e *CredentialsFileNotFound) Directive() string
func (*CredentialsFileNotFound) Error ¶
func (e *CredentialsFileNotFound) Error() string
type DeclineToLoginError ¶
type DeclineToLoginError struct{}
func (*DeclineToLoginError) Directive ¶
func (d *DeclineToLoginError) Directive() string
func (*DeclineToLoginError) Error ¶
func (d *DeclineToLoginError) Error() string
type ErrReportBreadCrumb ¶ added in v0.6.72
type ErrorReporter ¶ added in v0.6.63
type ErrorReporter interface { Setup() func() Flush() ReportMessage(string) string ReportError(error) string AddTag(key string, value string) SetUser(user ErrorUser) AddBreadCrumb(bc ErrReportBreadCrumb) }
func GetDefaultErrorReporter ¶ added in v0.6.63
func GetDefaultErrorReporter() ErrorReporter
type SentryErrorReporter ¶ added in v0.6.63
type SentryErrorReporter struct{}
func (SentryErrorReporter) AddBreadCrumb ¶ added in v0.6.72
func (s SentryErrorReporter) AddBreadCrumb(bc ErrReportBreadCrumb)
func (SentryErrorReporter) AddTag ¶ added in v0.6.63
func (s SentryErrorReporter) AddTag(key string, value string)
func (SentryErrorReporter) Flush ¶ added in v0.6.63
func (s SentryErrorReporter) Flush()
func (SentryErrorReporter) ReportError ¶ added in v0.6.63
func (s SentryErrorReporter) ReportError(e error) string
func (SentryErrorReporter) ReportMessage ¶ added in v0.6.63
func (s SentryErrorReporter) ReportMessage(msg string) string
func (SentryErrorReporter) SetUser ¶ added in v0.6.63
func (s SentryErrorReporter) SetUser(user ErrorUser)
func (SentryErrorReporter) Setup ¶ added in v0.6.63
func (s SentryErrorReporter) Setup() func()
type ValidationError ¶ added in v0.6.63
type ValidationError struct {
Message string
}
func NewValidationError ¶ added in v0.6.63
func NewValidationError(message string) ValidationError
func (ValidationError) Error ¶ added in v0.6.63
func (v ValidationError) Error() string
type WorkspaceNotRunning ¶ added in v0.6.91
type WorkspaceNotRunning struct {
Status string
}
func (WorkspaceNotRunning) Error ¶ added in v0.6.91
func (e WorkspaceNotRunning) Error() string
Click to show internal directories.
Click to hide internal directories.