SetCommonError set the common result that response body will be unmarshalled to if no error occurs but Response.ResultState returns ErrorState, by default it is HTTP status `code >= 400`, you can also use SetCommonResultStateChecker to customize the result state check logic. Deprecated: Use SetComm
(err any)
| 176 | // |
| 177 | // Deprecated: Use SetCommonErrorResult instead. |
| 178 | func (c *Client) SetCommonError(err any) *Client { |
| 179 | return c.SetCommonErrorResult(err) |
| 180 | } |
| 181 | |
| 182 | // SetCommonErrorResult set the common result that response body will be unmarshalled to |
| 183 | // if no error occurs but Response.ResultState returns ErrorState, by default it |
nothing calls this directly
no test coverage detected