errors

package
v0.1.22 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2018 License: Apache-2.0 Imports: 0 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DriverError

type DriverError struct {
	Err error `json:"err"`
}

DriverError declares a driver error it may caused by

  • network connection error
  • driver adaptor system error
  • driver side error

func (*DriverError) Error

func (err *DriverError) Error() string

type ObjectMarshalError

type ObjectMarshalError struct {
	Err error `json:"err"`
}

ObjectMarshalError declares an object marshal error

func (*ObjectMarshalError) Error

func (err *ObjectMarshalError) Error() string

type ObjectNotFoundError

type ObjectNotFoundError struct {
	Err error `json:"err"`
}

ObjectNotFoundError declares an object-not-found error

func (*ObjectNotFoundError) Error

func (err *ObjectNotFoundError) Error() string

type RequestError added in v0.1.13

type RequestError struct {
	Err error `json:"err"`
}

RequestError indicates a user/client error

func NewRequestError added in v0.1.13

func NewRequestError(err error) *RequestError

NewRequestError creates a new RequestError

func (*RequestError) Error added in v0.1.13

func (err *RequestError) Error() string

type ServerError added in v0.1.13

type ServerError struct {
	Err error `json:"err"`
}

ServerError indicates a unexpected error on the server side

func NewServerError added in v0.1.13

func NewServerError(err error) *ServerError

NewServerError creates a new ServerError

func (*ServerError) Error added in v0.1.13

func (err *ServerError) Error() string

Jump to

Keyboard shortcuts

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