Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ErrorCode7 Resource not found ErrorCode7 = "KAFKAS-MGMT-7" // ErrorCode24 The maximum number of allowed kafka instances has been reached ErrorCode24 = "KAFKAS-MGMT-24" // ErrorCode21 Bad Request ErrorCode21 = "KAFKAS-MGMT-21" // ErrorCode36 Kafka cluster name is already used ErrorCode36 = "KAFKAS-MGMT-36" )
Variables ¶
This section is empty.
Functions ¶
func GetAPIError ¶
func GetAPIError(err error) *kafkamgmtclient.Error
GetAPIError gets a strongly typed error from an error
func IsErr ¶
func IsErr(err error, code ServiceErrorCode) bool
IsErr returns true if the error contains the errCode
Types ¶
type ServiceErrorCode ¶
type ServiceErrorCode string
Click to show internal directories.
Click to hide internal directories.