error

package
v0.0.0-...-0da69c7 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorToProblemDetails

func ErrorToProblemDetails(err error) models.ProblemDetails

func ExtractAndWrapOpenAPIError

func ExtractAndWrapOpenAPIError(method string, res any, errIn error) (err error)

Types

type ProblemDetailsError

type ProblemDetailsError struct {
	Message        string
	ProblemDetails models.ProblemDetails
}

func (*ProblemDetailsError) Error

func (e *ProblemDetailsError) Error() string

type WrappedOpenAPIError

type WrappedOpenAPIError struct {
	Method    string
	BaseError error
}

func (*WrappedOpenAPIError) Error

func (e *WrappedOpenAPIError) Error() string

func (*WrappedOpenAPIError) Unwrap

func (e *WrappedOpenAPIError) Unwrap() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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