openapierr

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// NotFound const defines the code value for openapi internal NotFound errors
	NotFound = "NotFound"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error interface {
	// Inherit from go error builtin interface
	error

	// Code that briefly describes the type of error
	Code() string
}

Error defines the interface that OpenAPI internal errors must be compliant with

type NotFoundError

type NotFoundError struct {
	OriginalError error
}

NotFoundError represent a NotFound error and implements the openapi Error interface

func (*NotFoundError) Code

func (e *NotFoundError) Code() string

Code returns the code that represents the NotFound error

func (*NotFoundError) Error

func (e *NotFoundError) Error() string

Error returns a string containing the original error; or an empty string otherwise

Jump to

Keyboard shortcuts

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