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
 Click to show internal directories. 
   Click to hide internal directories.