error

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2022 License: Apache-2.0 Imports: 2 Imported by: 7

Documentation

Index

Constants

View Source
const (

	// Forbidden to perform this action
	ERROR_4 string = "CONNECTOR-MGMT-4"

	// Forbidden to create more instances than the maximum allowed
	ERROR_5 string = "CONNECTOR-MGMT-5"

	// An entity with the specified unique values already exists
	ERROR_6 string = "CONNECTOR-MGMT-6"

	// Resource not found
	ERROR_7 string = "CONNECTOR-MGMT-7"

	// General validation failure
	ERROR_8 string = "CONNECTOR-MGMT-8"

	// Unspecified error
	ERROR_9 string = "CONNECTOR-MGMT-9"

	// HTTP Method not implemented for this endpoint
	ERROR_10 string = "CONNECTOR-MGMT-10"

	// Account is unauthorized to perform this action
	ERROR_11 string = "CONNECTOR-MGMT-11"

	// Required terms have not been accepted
	ERROR_12 string = "CONNECTOR-MGMT-12"

	// Account authentication could not be verified
	ERROR_15 string = "CONNECTOR-MGMT-15"

	// Unable to read request body
	ERROR_17 string = "CONNECTOR-MGMT-17"

	// Bad request
	ERROR_21 string = "CONNECTOR-MGMT-21"

	// Failed to parse search query
	ERROR_23 string = "CONNECTOR-MGMT-23"

	// The maximum number of allowed kafka instances has been reached
	ERROR_24 string = "CONNECTOR-MGMT-24"

	// Resource gone
	ERROR_25 string = "CONNECTOR-MGMT-25"

	// Provider not supported
	ERROR_30 string = "CONNECTOR-MGMT-30"

	// Region not supported
	ERROR_31 string = "CONNECTOR-MGMT-31"

	// Kafka cluster name is invalid
	ERROR_32 string = "CONNECTOR-MGMT-32"

	// Minimum field length not reached
	ERROR_33 string = "CONNECTOR-MGMT-33"

	// Maximum field length has been depassed
	ERROR_34 string = "CONNECTOR-MGMT-34"

	// Only multiAZ Kafkas are supported, use multi_az=true
	ERROR_35 string = "CONNECTOR-MGMT-35"

	// Kafka cluster name is already used
	ERROR_36 string = "CONNECTOR-MGMT-36"

	// Field validation failed
	ERROR_37 string = "CONNECTOR-MGMT-37"

	// Service account name is invalid
	ERROR_38 string = "CONNECTOR-MGMT-38"

	// Service account desc is invalid
	ERROR_39 string = "CONNECTOR-MGMT-39"

	// Service account id is invalid
	ERROR_40 string = "CONNECTOR-MGMT-40"

	// Instance Type not supported
	ERROR_41 string = "CONNECTOR-MGMT-41"

	// Synchronous action is not supported, use async=true parameter
	ERROR_103 string = "CONNECTOR-MGMT-103"

	// Failed to create kafka client in the mas sso
	ERROR_106 string = "CONNECTOR-MGMT-106"

	// Failed to get kafka client secret from the mas sso
	ERROR_107 string = "CONNECTOR-MGMT-107"

	// Failed to get kafka client from the mas sso
	ERROR_108 string = "CONNECTOR-MGMT-108"

	// Failed to delete kafka client from the mas sso
	ERROR_109 string = "CONNECTOR-MGMT-109"

	// Failed to create service account
	ERROR_110 string = "CONNECTOR-MGMT-110"

	// Failed to get service account
	ERROR_111 string = "CONNECTOR-MGMT-111"

	// Failed to delete service account
	ERROR_112 string = "CONNECTOR-MGMT-112"

	// Failed to find service account
	ERROR_113 string = "CONNECTOR-MGMT-113"

	// Insufficient quota
	ERROR_120 string = "CONNECTOR-MGMT-120"

	// Failed to check quota
	ERROR_121 string = "CONNECTOR-MGMT-121"

	// Too Many requests
	ERROR_429 string = "CONNECTOR-MGMT-429"

	// An unexpected error happened, please check the log of the service for details
	ERROR_1000 string = "CONNECTOR-MGMT-1000"
)

Variables

This section is empty.

Functions

func GetAPIError

func GetAPIError(err error) *connectormgmtclient.Error

GetAPIError gets a strongly typed error from an error

func IsAPIError

func IsAPIError(err error, code string) bool

IsAPIError returns true if the error contains the errCode Error code is an code that is returned by the API

Types

This section is empty.

Jump to

Keyboard shortcuts

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