errors

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: MIT Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package swaggerpetstore

This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).

Index

Constants

This section is empty.

Variables

View Source
var NewApiError = apiError.NewApiError

Functions

This section is empty.

Types

type OAuthProvider

type OAuthProvider struct {
	apiError.ApiError
	MError           models.OAuthProviderErrorEnum `json:"error"`
	ErrorDescription *string                       `json:"error_description,omitempty"`
	ErrorUri         *string                       `json:"error_uri,omitempty"`
}

OAuthProvider is a custom error. OAuth 2 Authorization endpoint exception.

func NewOAuthProvider

func NewOAuthProvider(
	statusCode int,
	body string) *OAuthProvider

NewOAuthProvider is a constructor for OAuthProvider. It creates and returns a pointer to a new OAuthProvider instance with the given statusCode and body.

func (*OAuthProvider) Error

func (o *OAuthProvider) Error() string

Error implements the Error method for the error interface. It returns a formatted error message for OAuthProvider.

Jump to

Keyboard shortcuts

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