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 (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) 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
Click to show internal directories.
Click to hide internal directories.