standardisedError

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StandardisedError

type StandardisedError struct {
	//A URI reference [RFC3986] that identifies the problem type.
	Type string `json:"type"`

	//A short, human-readable summary of the problem type.  It SHOULD NOT change from occurrence to occurrence
	Title string `json:"title"`

	//The HTTP status code
	Status int `json:"status"`

	//A human-readable explanation specific to this occurrence of the problem.
	Detail string `json:"detail"`

	//A URI reference that identifies the specific
	//occurrence of the problem.  It may or may not yield further
	//information if dereferenced.
	Instance string `json:"instance"`
}

implementation of the RFC7807 error

func (*StandardisedError) Error

func (s *StandardisedError) Error() string

func (*StandardisedError) GetStandardisedError

func (s *StandardisedError) GetStandardisedError() *StandardisedError

Jump to

Keyboard shortcuts

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