errors

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2021 License: MIT Imports: 4 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