Documentation ¶ Index ¶ func GetError(err error) error type KNError func NewKNError(msg string) *KNError func (kne *KNError) Error() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GetError ¶ func GetError(err error) error Retrieves a custom error struct based on the original error APIStatus struct Returns the original error struct in case it can't identify the kind of APIStatus error Types ¶ type KNError ¶ type KNError struct { Status api_errors.APIStatus // contains filtered or unexported fields } func NewKNError ¶ func NewKNError(msg string) *KNError func (*KNError) Error ¶ func (kne *KNError) Error() string Source Files ¶ View all Source files errors.go factory.go knerror.go types.go Click to show internal directories. Click to hide internal directories.