Help us shape the future of Go! Take the 2026 Go Developer Survey

zbxerr

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: MIT Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorInvalidParams        = New("invalid parameters")
	ErrorTooFewParameters     = New("too few parameters")
	ErrorTooManyParameters    = New("too many parameters")
	ErrorInvalidConfiguration = New("invalid configuration")
	ErrorCannotFetchData      = New("cannot fetch data")
	ErrorCannotUnmarshalJSON  = New("cannot unmarshal JSON")
	ErrorCannotMarshalJSON    = New("cannot marshal JSON")
	ErrorCannotParseResult    = New("cannot parse result")
	ErrorConnectionFailed     = New("connection failed")
	ErrorUnsupportedMetric    = New("unsupported metric")
	ErrorEmptyResult          = New("empty result")
	ErrorUnknownSession       = New("unknown session")
)

Functions

This section is empty.

Types

type ZabbixError

type ZabbixError struct {
	// contains filtered or unexported fields
}

func New

func New(msg string) ZabbixError

New creates a new ZabbixError

func (ZabbixError) Cause

func (e ZabbixError) Cause() error

Cause returns a cause of original error

func (ZabbixError) Error

func (e ZabbixError) Error() string

Error stringifies an error according to Zabbix requirements: * the first letter must be capitalized; * an error text should be trailed by a dot.

func (ZabbixError) Raw

func (e ZabbixError) Raw() string

Raw returns a non-modified error message

func (ZabbixError) Unwrap

func (e ZabbixError) Unwrap() error

Unwrap extracts an original underlying error

func (ZabbixError) Wrap

func (e ZabbixError) Wrap(cause error) error

Wrap creates a new ZabbixError with wrapped cause

Source Files

  • zbxerr.go

Jump to

Keyboard shortcuts

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