Documentation
¶
Overview ¶
Package swaggerpetstore
This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
Index ¶
Constants ¶
This section is empty.
Variables ¶
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.