package
0.0.0-20241210072137-8149b9cdf2cb
Repository: https://github.com/dana-team/platform-backend.git
Documentation: pkg.go.dev

# Functions

NewAPIError creates a new APIError based on a k8s StatusError or defaults to InternalServerError.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

APIError is a generic error type that includes an HTTP status code.
ConflictError represents an error due to a conflict in state.
InternalServerError represents an error due to an unknown error.
NotFoundError represents an error when a resource is not found.
UnauthorizedError represents an error when access is denied.
ValidationError represents an error due to invalid input.

# Interfaces

ErrorWithStatusCode is a common interface for errors that include a status code.