{"modulePath":"github.com/tmunzer/mistapi-go","version":"v0.4.110","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package errors\n\nPackage mistapi Copyright \\\\xA9 2024 Juniper Networks, Inc. All rights reserved\n\n## Functions\n\n```go\nfunc NewErrorDeleteFailed(apiError https.ApiError) error\n```\nNewErrorDeleteFailed is a constructor for ErrorDeleteFailed. It creates and returns a pointer to a new ErrorDeleteFailed instance with the given statusCode and body.\n\n```go\nfunc NewResponseDetailString(apiError https.ApiError) error\n```\nNewResponseDetailString is a constructor for ResponseDetailString. It creates and returns a pointer to a new ResponseDetailString instance with the given statusCode and body.\n\n```go\nfunc NewResponseHttp400(apiError https.ApiError) error\n```\nNewResponseHttp400 is a constructor for ResponseHttp400. It creates and returns a pointer to a new ResponseHttp400 instance with the given statusCode and body.\n\n```go\nfunc NewResponseHttp400Webhook(apiError https.ApiError) error\n```\nNewResponseHttp400Webhook is a constructor for ResponseHttp400Webhook. It creates and returns a pointer to a new ResponseHttp400Webhook instance with the given statusCode and body.\n\n```go\nfunc NewResponseHttp401(apiError https.ApiError) error\n```\nNewResponseHttp401 is a constructor for ResponseHttp401. It creates and returns a pointer to a new ResponseHttp401 instance with the given statusCode and body.\n\n```go\nfunc NewResponseHttp403(apiError https.ApiError) error\n```\nNewResponseHttp403 is a constructor for ResponseHttp403. It creates and returns a pointer to a new ResponseHttp403 instance with the given statusCode and body.\n\n```go\nfunc NewResponseHttp404(apiError https.ApiError) error\n```\nNewResponseHttp404 is a constructor for ResponseHttp404. It creates and returns a pointer to a new ResponseHttp404 instance with the given statusCode and body.\n\n```go\nfunc NewResponseHttp429(apiError https.ApiError) error\n```\nNewResponseHttp429 is a constructor for ResponseHttp429. It creates and returns a pointer to a new ResponseHttp429 instance with the given statusCode and body.\n\n```go\nfunc NewResponseInventoryError(apiError https.ApiError) error\n```\nNewResponseInventoryError is a constructor for ResponseInventoryError. It creates and returns a pointer to a new ResponseInventoryError instance with the given statusCode and body.\n\n```go\nfunc NewResponseLoginFailure(apiError https.ApiError) error\n```\nNewResponseLoginFailure is a constructor for ResponseLoginFailure. It creates and returns a pointer to a new ResponseLoginFailure instance with the given statusCode and body.\n\n```go\nfunc NewResponseSelfOauthLinkFailure(apiError https.ApiError) error\n```\nNewResponseSelfOauthLinkFailure is a constructor for ResponseSelfOauthLinkFailure. It creates and returns a pointer to a new ResponseSelfOauthLinkFailure instance with the given statusCode and body.\n\n## Types\n\n```go\ntype ErrorDeleteFailed struct {\n\thttps.ApiError\n\tDetail string    `json:\"detail\"`\n\tOrgId  uuid.UUID `json:\"org_id\"`\n}\n```\nErrorDeleteFailed is a custom error. Error response returned when an organization delete request is blocked\n\n```go\nfunc (e ErrorDeleteFailed) Error() string\n```\nError implements the Error method for the error interface. It returns a formatted error message for ErrorDeleteFailed.\n\n```go\nfunc (e ErrorDeleteFailed) String() string\n```\nString implements the fmt.Stringer interface for ErrorDeleteFailed, providing a human-readable string representation useful for logging, debugging or displaying information.\n\n```go\ntype ResponseDetailString struct {\n\thttps.ApiError\n\tDetail *string `json:\"detail,omitempty\"`\n}\n```\nResponseDetailString is a custom error. Response containing a human-readable detail message\n\n```go\nfunc (r ResponseDetailString) Error() string\n```\nError implements the Error method for the error interface. It returns a formatted error message for ResponseDetailString.\n\n```go\nfunc (r ResponseDetailString) String() string\n```\nString implements the fmt.Stringer interface for ResponseDetailString, providing a human-readable string representation useful for logging, debugging or displaying information.\n\n```go\ntype ResponseHttp400 struct {\n\thttps.ApiError\n\tDetail *string `json:\"detail,omitempty\"`\n}\n```\nResponseHttp400 is a custom error. Standard HTTP 400 bad request error response\n\n```go\nfunc (r ResponseHttp400) Error() string\n```\nError implements the Error method for the error interface. It returns a formatted error message for ResponseHttp400.\n\n```go\nfunc (r ResponseHttp400) String() string\n```\nString implements the fmt.Stringer interface for ResponseHttp400, providing a human-readable string representation useful for logging, debugging or displaying information.\n\n```go\ntype ResponseHttp400Webhook struct {\n\thttps.ApiError\n\tDetail *string `json:\"detail,omitempty\"`\n\tReason *string `json:\"reason,omitempty\"`\n}\n```\nResponseHttp400Webhook is a custom error. Webhook-specific HTTP 400 bad request error response\n\n```go\nfunc (r ResponseHttp400Webhook) Error() string\n```\nError implements the Error method for the error interface. It returns a formatted error message for ResponseHttp400Webhook.\n\n```go\nfunc (r ResponseHttp400Webhook) String() string\n```\nString implements the fmt.Stringer interface for ResponseHttp400Webhook, providing a human-readable string representation useful for logging, debugging or displaying information.\n\n```go\ntype ResponseHttp401 struct {\n\thttps.ApiError\n\tDetail *string `json:\"detail,omitempty\"`\n}\n```\nResponseHttp401 is a custom error. Standard HTTP 401 authentication error response\n\n```go\nfunc (r ResponseHttp401) Error() string\n```\nError implements the Error method for the error interface. It returns a formatted error message for ResponseHttp401.\n\n```go\nfunc (r ResponseHttp401) String() string\n```\nString implements the fmt.Stringer interface for ResponseHttp401, providing a human-readable string representation useful for logging, debugging or displaying information.\n\n```go\ntype ResponseHttp403 struct {\n\thttps.ApiError\n\tDetail *string `json:\"detail,omitempty\"`\n}\n```\nResponseHttp403 is a custom error. Standard HTTP 403 permission error response\n\n```go\nfunc (r ResponseHttp403) Error() string\n```\nError implements the Error method for the error interface. It returns a formatted error message for ResponseHttp403.\n\n```go\nfunc (r ResponseHttp403) String() string\n```\nString implements the fmt.Stringer interface for ResponseHttp403, providing a human-readable string representation useful for logging, debugging or displaying information.\n\n```go\ntype ResponseHttp404 struct {\n\thttps.ApiError\n\tId *string `json:\"id,omitempty\"`\n}\n```\nResponseHttp404 is a custom error. Standard HTTP 404 not found error response\n\n```go\nfunc (r ResponseHttp404) Error() string\n```\nError implements the Error method for the error interface. It returns a formatted error message for ResponseHttp404.\n\n```go\nfunc (r ResponseHttp404) String() string\n```\nString implements the fmt.Stringer interface for ResponseHttp404, providing a human-readable string representation useful for logging, debugging or displaying information.\n\n```go\ntype ResponseHttp429 struct {\n\thttps.ApiError\n\tDetail *string `json:\"detail,omitempty\"`\n}\n```\nResponseHttp429 is a custom error. Standard HTTP 429 rate limit error response\n\n```go\nfunc (r ResponseHttp429) Error() string\n```\nError implements the Error method for the error interface. It returns a formatted error message for ResponseHttp429.\n\n```go\nfunc (r ResponseHttp429) String() string\n```\nString implements the fmt.Stringer interface for ResponseHttp429, providing a human-readable string representation useful for logging, debugging or displaying information.\n\n```go\ntype ResponseInventoryError struct {\n\thttps.ApiError\n\tAdded               []string                                           `json:\"added,omitempty\"`\n\tDuplicated          []string                                           `json:\"duplicated,omitempty\"`\n\tMError              []string                                           `json:\"error,omitempty\"`\n\tInventoryAdded      []models.ResponseInventoryInventoryAddedItems      `json:\"inventory_added,omitempty\"`\n\tInventoryDuplicated []models.ResponseInventoryInventoryDuplicatedItems `json:\"inventory_duplicated,omitempty\"`\n\tReason              []string                                           `json:\"reason,omitempty\"`\n}\n```\nResponseInventoryError is a custom error. Result of adding device claim codes to organization inventory\n\n```go\nfunc (r ResponseInventoryError) Error() string\n```\nError implements the Error method for the error interface. It returns a formatted error message for ResponseInventoryError.\n\n```go\nfunc (r ResponseInventoryError) String() string\n```\nString implements the fmt.Stringer interface for ResponseInventoryError, providing a human-readable string representation useful for logging, debugging or displaying information.\n\n```go\ntype ResponseLoginFailure struct {\n\thttps.ApiError\n\tDetail     string  `json:\"detail\"`\n\tForwardUrl *string `json:\"forward_url,omitempty\"`\n}\n```\nResponseLoginFailure is a custom error. Login failure response returned when authentication cannot continue locally\n\n```go\nfunc (r ResponseLoginFailure) Error() string\n```\nError implements the Error method for the error interface. It returns a formatted error message for ResponseLoginFailure.\n\n```go\nfunc (r ResponseLoginFailure) String() string\n```\nString implements the fmt.Stringer interface for ResponseLoginFailure, providing a human-readable string representation useful for logging, debugging or displaying information.\n\n```go\ntype ResponseSelfOauthLinkFailure struct {\n\thttps.ApiError\n\tMError           string `json:\"error\"`\n\tErrorDescription string `json:\"error_description\"`\n}\n```\nResponseSelfOauthLinkFailure is a custom error. OAuth2 account-linking failure response\n\n```go\nfunc (r ResponseSelfOauthLinkFailure) Error() string\n```\nError implements the Error method for the error interface. It returns a formatted error message for ResponseSelfOauthLinkFailure.\n\n```go\nfunc (r ResponseSelfOauthLinkFailure) String() string\n```\nString implements the fmt.Stringer interface for ResponseSelfOauthLinkFailure, providing a human-readable string representation useful for logging, debugging or displaying information.\n\n","path":"github.com/tmunzer/mistapi-go/mistapi/errors","name":"errors","synopsis":"Package mistapi Copyright \\xA9 2024 Juniper Networks, Inc.","isRedistributable":true}
