commonerr

package
v0.0.0-...-d1992f0 Latest Latest
Warning

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

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

Documentation

Overview

Package commonerr defines reusable error types common throughout the Port Authority codebase.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotFound occurs when a resource could not be found
	ErrNotFound = errors.New("the resource cannot be found")
)

Functions

func NewBadRequestError

func NewBadRequestError(message string) error

NewBadRequestError instantiates a ErrBadRequest with the specified message

Types

type ErrBadRequest

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

ErrBadRequest occurs when a method has been passed an inappropriate argument

func (*ErrBadRequest) Error

func (e *ErrBadRequest) Error() string

Jump to

Keyboard shortcuts

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