# Functions
NewErrorResponseFromApiError Given a Single APIError and the given Option's returns an instance of Error.
NewErrorResponseFromApiErrors Given multiple APIError's and the given Option's returns an instance of Error.
NewSimpleError is a helper function that will create a serr.Error that satisfies most use cases.
NewSimpleErrorWithStatusCode is a helper function that will create a serr.Error that satisfies most use cases.
NewWrappedErrorWithStatusCode is a helper function that creates a serr.Error from an error.
WithCause The given error will be stored and used in logging and ultimately become Error.Cause.
WithErrorMessage The error message for logging, this will NOT be part of the server response.
WithExtraDetailsForLogging Adds the given logging details to what will ultimately become Error.ExtraDetailsForLogging.
WithExtraResponseHeaders Adds the given response headers to what will ultimately become Error.ExtraResponseHeaders.
WithFrameSkips Overrides the number of frames to skip when generating the stack trace.
WithStackTraceLoggingBehavior Sets the given StackTraceLoggingBehavior for what will ultimately become Error.StackTraceLoggingBehavior.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
APIError is an error that gets embedded in ResponseContract when an error response is returned to the client.
No description provided by the author
ResponseContract the strongly typed error contract that will be returned to the client if a request is not successful.
No description provided by the author
# Interfaces
Error You'll want to create an instance using one of the New* functions in this package such as NewSimpleError, NewErrorResponseFromApiError, etc.
# Type aliases
No description provided by the author
No description provided by the author