proxyerror

package
v0.0.0-...-aa78a79 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProxyError

type ProxyError struct {
	Code    int
	Time    time.Time
	Message string
}

ProxyError is error(s) occurring during communication with Kafka Use Code for error reference Try to use predefined errors (such as ConnectionError) Add new if required

func BrokersNotSetError

func BrokersNotSetError(messages ...string) *ProxyError

BrokersNotSetError represents error when brokers are not specified

func ConnectionError

func ConnectionError(messages ...string) *ProxyError

ConnectionError represents error while connecting to some resource

func ResourceCloseError

func ResourceCloseError(messages ...string) *ProxyError

ResourceCloseError represents error while closing some resource

func ResourceClosedError

func ResourceClosedError(messages ...string) *ProxyError

ResourceClosedError represents error while trying to access a closed resource

func ResourceWriteError

func ResourceWriteError(messages ...string) *ProxyError

ResourceWriteError represents error while writing to a resource

func (*ProxyError) Error

func (e *ProxyError) Error() string

Jump to

Keyboard shortcuts

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