errors

package
v0.4.107 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2026 License: MIT Imports: 5 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 mistapi Copyright \xA9 2024 Juniper Networks, Inc. All rights reserved

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewErrorDeleteFailed

func NewErrorDeleteFailed(apiError https.ApiError) error

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

func NewResponseDetailString

func NewResponseDetailString(apiError https.ApiError) error

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

func NewResponseHttp400

func NewResponseHttp400(apiError https.ApiError) error

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

func NewResponseHttp400Webhook added in v0.4.74

func NewResponseHttp400Webhook(apiError https.ApiError) error

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

func NewResponseHttp401 added in v0.4.104

func NewResponseHttp401(apiError https.ApiError) error

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

func NewResponseHttp403 added in v0.4.104

func NewResponseHttp403(apiError https.ApiError) error

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

func NewResponseHttp404

func NewResponseHttp404(apiError https.ApiError) error

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

func NewResponseHttp429 added in v0.4.104

func NewResponseHttp429(apiError https.ApiError) error

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

func NewResponseInventoryError added in v0.3.9

func NewResponseInventoryError(apiError https.ApiError) error

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

func NewResponseLoginFailure

func NewResponseLoginFailure(apiError https.ApiError) error

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

func NewResponseSelfOauthLinkFailure

func NewResponseSelfOauthLinkFailure(apiError https.ApiError) error

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

Types

type ErrorDeleteFailed

type ErrorDeleteFailed struct {
	https.ApiError
	Detail string    `json:"detail"`
	OrgId  uuid.UUID `json:"org_id"`
}

ErrorDeleteFailed is a custom error. Error response returned when an organization delete request is blocked

func (ErrorDeleteFailed) Error

func (e ErrorDeleteFailed) Error() string

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

func (ErrorDeleteFailed) String added in v0.4.23

func (e ErrorDeleteFailed) String() string

String implements the fmt.Stringer interface for ErrorDeleteFailed, providing a human-readable string representation useful for logging, debugging or displaying information.

type ResponseDetailString

type ResponseDetailString struct {
	https.ApiError
	Detail *string `json:"detail,omitempty"`
}

ResponseDetailString is a custom error. Response containing a human-readable detail message

func (ResponseDetailString) Error

func (r ResponseDetailString) Error() string

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

func (ResponseDetailString) String added in v0.4.23

func (r ResponseDetailString) String() string

String implements the fmt.Stringer interface for ResponseDetailString, providing a human-readable string representation useful for logging, debugging or displaying information.

type ResponseHttp400

type ResponseHttp400 struct {
	https.ApiError
	Detail *string `json:"detail,omitempty"`
}

ResponseHttp400 is a custom error. Standard HTTP 400 bad request error response

func (ResponseHttp400) Error

func (r ResponseHttp400) Error() string

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

func (ResponseHttp400) String added in v0.4.23

func (r ResponseHttp400) String() string

String implements the fmt.Stringer interface for ResponseHttp400, providing a human-readable string representation useful for logging, debugging or displaying information.

type ResponseHttp400Webhook added in v0.4.74

type ResponseHttp400Webhook struct {
	https.ApiError
	Detail *string `json:"detail,omitempty"`
	Reason *string `json:"reason,omitempty"`
}

ResponseHttp400Webhook is a custom error. Webhook-specific HTTP 400 bad request error response

func (ResponseHttp400Webhook) Error added in v0.4.74

func (r ResponseHttp400Webhook) Error() string

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

func (ResponseHttp400Webhook) String added in v0.4.74

func (r ResponseHttp400Webhook) String() string

String implements the fmt.Stringer interface for ResponseHttp400Webhook, providing a human-readable string representation useful for logging, debugging or displaying information.

type ResponseHttp401 added in v0.4.104

type ResponseHttp401 struct {
	https.ApiError
	Detail *string `json:"detail,omitempty"`
}

ResponseHttp401 is a custom error. Standard HTTP 401 authentication error response

func (ResponseHttp401) Error added in v0.4.104

func (r ResponseHttp401) Error() string

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

func (ResponseHttp401) String added in v0.4.104

func (r ResponseHttp401) String() string

String implements the fmt.Stringer interface for ResponseHttp401, providing a human-readable string representation useful for logging, debugging or displaying information.

type ResponseHttp403 added in v0.4.104

type ResponseHttp403 struct {
	https.ApiError
	Detail *string `json:"detail,omitempty"`
}

ResponseHttp403 is a custom error. Standard HTTP 403 permission error response

func (ResponseHttp403) Error added in v0.4.104

func (r ResponseHttp403) Error() string

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

func (ResponseHttp403) String added in v0.4.104

func (r ResponseHttp403) String() string

String implements the fmt.Stringer interface for ResponseHttp403, providing a human-readable string representation useful for logging, debugging or displaying information.

type ResponseHttp404

type ResponseHttp404 struct {
	https.ApiError
	Id *string `json:"id,omitempty"`
}

ResponseHttp404 is a custom error. Standard HTTP 404 not found error response

func (ResponseHttp404) Error

func (r ResponseHttp404) Error() string

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

func (ResponseHttp404) String added in v0.4.23

func (r ResponseHttp404) String() string

String implements the fmt.Stringer interface for ResponseHttp404, providing a human-readable string representation useful for logging, debugging or displaying information.

type ResponseHttp429 added in v0.4.104

type ResponseHttp429 struct {
	https.ApiError
	Detail *string `json:"detail,omitempty"`
}

ResponseHttp429 is a custom error. Standard HTTP 429 rate limit error response

func (ResponseHttp429) Error added in v0.4.104

func (r ResponseHttp429) Error() string

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

func (ResponseHttp429) String added in v0.4.104

func (r ResponseHttp429) String() string

String implements the fmt.Stringer interface for ResponseHttp429, providing a human-readable string representation useful for logging, debugging or displaying information.

type ResponseInventoryError added in v0.3.9

type ResponseInventoryError struct {
	https.ApiError
	Added               []string                                           `json:"added,omitempty"`
	Duplicated          []string                                           `json:"duplicated,omitempty"`
	MError              []string                                           `json:"error,omitempty"`
	InventoryAdded      []models.ResponseInventoryInventoryAddedItems      `json:"inventory_added,omitempty"`
	InventoryDuplicated []models.ResponseInventoryInventoryDuplicatedItems `json:"inventory_duplicated,omitempty"`
	Reason              []string                                           `json:"reason,omitempty"`
}

ResponseInventoryError is a custom error. Result of adding device claim codes to organization inventory

func (ResponseInventoryError) Error added in v0.3.9

func (r ResponseInventoryError) Error() string

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

func (ResponseInventoryError) String added in v0.4.23

func (r ResponseInventoryError) String() string

String implements the fmt.Stringer interface for ResponseInventoryError, providing a human-readable string representation useful for logging, debugging or displaying information.

type ResponseLoginFailure

type ResponseLoginFailure struct {
	https.ApiError
	Detail     string  `json:"detail"`
	ForwardUrl *string `json:"forward_url,omitempty"`
}

ResponseLoginFailure is a custom error. Login failure response returned when authentication cannot continue locally

func (ResponseLoginFailure) Error

func (r ResponseLoginFailure) Error() string

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

func (ResponseLoginFailure) String added in v0.4.23

func (r ResponseLoginFailure) String() string

String implements the fmt.Stringer interface for ResponseLoginFailure, providing a human-readable string representation useful for logging, debugging or displaying information.

type ResponseSelfOauthLinkFailure

type ResponseSelfOauthLinkFailure struct {
	https.ApiError
	MError           string `json:"error"`
	ErrorDescription string `json:"error_description"`
}

ResponseSelfOauthLinkFailure is a custom error. OAuth2 account-linking failure response

func (ResponseSelfOauthLinkFailure) Error

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

func (ResponseSelfOauthLinkFailure) String added in v0.4.23

String implements the fmt.Stringer interface for ResponseSelfOauthLinkFailure, providing a human-readable string representation useful for logging, debugging or displaying information.

Jump to

Keyboard shortcuts

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