errors

package
v0.6.233 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2023 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NetworkErrorMessage = "possible internet connection problem"

Functions

func MakeErrorMessage

func MakeErrorMessage(message string) string

func New added in v0.6.124

func New(message string) error

func WrapAndTrace

func WrapAndTrace(err error, messages ...string) error

Types

type BrevError

type BrevError interface {
	// Error returns a user-facing string explaining the error
	Error() string

	// Directive returns a user-facing string explaining how to overcome the error
	Directive() string
}

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 ErrReportBreadCrumb struct {
	Type     string
	Category string
	Message  string
	Level    string
}

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 ErrorUser added in v0.6.63

type ErrorUser struct {
	ID       string
	Username string
	Email    string
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL