errors

package
v0.4.20 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessError

type AccessError struct {
	Message     string
	SourceError error
}

AccessError happens when an unidentified error occurs

func NewAccessError

func NewAccessError(message string, err error) *AccessError

NewAccessError ctor

func (*AccessError) Error

func (e *AccessError) Error() string

func (*AccessError) Serialize

func (e *AccessError) Serialize() []byte

Serialize returns the error serialized

type DatabaseError

type DatabaseError struct {
	SourceError error
}

DatabaseError happens when an error occur when running a command in the database

func NewDatabaseError

func NewDatabaseError(err error) *DatabaseError

NewDatabaseError ctor

func (*DatabaseError) Error

func (e *DatabaseError) Error() string

func (*DatabaseError) Serialize

func (e *DatabaseError) Serialize() []byte

Serialize returns the error serialized

type GenericError

type GenericError struct {
	Message     string
	SourceError error
}

GenericError happens when an unidentified error occurs

func NewGenericError

func NewGenericError(message string, err error) *GenericError

NewGenericError ctor

func (*GenericError) Error

func (e *GenericError) Error() string

func (*GenericError) Serialize

func (e *GenericError) Serialize() []byte

Serialize returns the error serialized

type KubernetesError

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

KubernetesError happens when an error occur when running a command in the database

func NewKubernetesError

func NewKubernetesError(message string, err error) *KubernetesError

NewKubernetesError ctor

func (*KubernetesError) Error

func (e *KubernetesError) Error() string

func (*KubernetesError) Serialize

func (e *KubernetesError) Serialize() []byte

Serialize returns the error serialized

type SerializableError

type SerializableError interface {
	Serialize() []byte
}

SerializableError means that an error can be transformed to JSON

type YamlError

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

YamlError happens when an error occur when running a command in the database

func NewYamlError

func NewYamlError(message string, err error) *YamlError

NewYamlError ctor

func (*YamlError) Error

func (e *YamlError) Error() string

func (*YamlError) Serialize

func (e *YamlError) Serialize() []byte

Serialize returns the error serialized

Jump to

Keyboard shortcuts

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