package
0.1.459
Repository: https://github.com/openshift-online/ocm-sdk-go.git
Documentation: pkg.go.dev

# Functions

MarshalError writes an error to the given writer.
NewError creates a new builder that can then be used to create error objects.
SendError writes a given error and status code to a response writer.
SendInternalServerError sends a generic 500 error.
SendMethodNotAllowed sends a generic 405 error.
SendNotFound sends a generic 404 error.
SendPanic sends a panic error response to the client, but it doesn't end the process.
UnmarshalError reads an error from the given source which can be an slice of bytes, a string, a reader or a JSON decoder.
UnmarshalErrorStatus reads an error from the given source and sets the given status code.

# Constants

Error kind is the name of the type used to represent errors.
ErrorNilKind is the name of the type used to nil errors.

# Structs

Error represents errors.
ErrorBuilder is a builder for the error type.