Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttemptGenericError ¶ added in v0.8.7
AttemptGenericError can be used for trying to extract our default HTTPErrorResponse from any error response returned by the generated swagger client (which always has a specific type).
This is useful for printing out errors nicely without having to implement big error type switches.
The function returns the original error when the error does not contain a HTTPErrorResponse.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.