error

package
v0.0.0-...-26f9c4c Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 2 Imported by: 3

Documentation

Index

Constants

View Source
const (
	// Unspecified error
	ERROR_1 string = "SRS-MGMT-1"

	// Registry with id='?' not found
	ERROR_2 string = "SRS-MGMT-2"

	// Bad date or time format
	ERROR_3 string = "SRS-MGMT-3"

	// Invalid request content or parameters. Make sure the request conforms to the given JSON schema
	ERROR_4 string = "SRS-MGMT-4"

	// Bad request format - invalid JSON
	ERROR_5 string = "SRS-MGMT-5"

	// Required terms have not been accepted for account id='?'
	ERROR_6 string = "SRS-MGMT-6"

	// The maximum number of allowed Registry instances has been reached
	ERROR_7 string = "SRS-MGMT-7"

	// Error type with id='?' not found
	ERROR_8 string = "SRS-MGMT-8"

	// Data conflict. Make sure a Registry with the given name does not already exist
	ERROR_9 string = "SRS-MGMT-9"

	// Bad request format - unsupported media type
	ERROR_10 string = "SRS-MGMT-10"

	// Could not check quota for user?
	ERROR_11 string = "SRS-MGMT-11"

	// Evaluation instances not allowed
	ERROR_12 string = "SRS-MGMT-12"

	// User already has the maximum number of allowed Evaluation instances
	ERROR_13 string = "SRS-MGMT-13"

	// Total (global) number of instances exhausted
	ERROR_14 string = "SRS-MGMT-14"

	// User is not authorized to perform the operation
	ERROR_15 string = "SRS-MGMT-15"
)

Variables

This section is empty.

Functions

func GetAPIError

func GetAPIError(err error) *registrymgmtclient.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

Types

This section is empty.

Jump to

Keyboard shortcuts

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