errors

package
v0.0.0-...-f70f46d Latest Latest
Warning

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

Go to latest
Published: May 3, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package errors exposes errors types used by gnomockd endpoints

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorCode

func ErrorCode(err error) int

ErrorCode returns HTTP response code for the provided error

func InvalidStopRequestError

func InvalidStopRequestError(err error) error

InvalidStopRequestError means that the request parameters of /stop call were invalid

func NewInvalidStartRequestError

func NewInvalidStartRequestError(err error) error

NewInvalidStartRequestError means that the request parameters of /start call were invalid

func NewPresetNotFoundError

func NewPresetNotFoundError(name string) error

NewPresetNotFoundError is returned when an invalid/unknown preset name was used

func NewStartFailedError

func NewStartFailedError(err error, c *gnomock.Container) error

NewStartFailedError means that the container failed to start for some reason

func StopFailedError

func StopFailedError(err error, c *gnomock.Container) error

StopFailedError means that the container failed to stop

Types

This section is empty.

Jump to

Keyboard shortcuts

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