(code int, desc string, statusCode int)
| 21 | } |
| 22 | |
| 23 | func MidjourneyErrorWithStatusCodeWrapper(code int, desc string, statusCode int) *dto.MidjourneyResponseWithStatusCode { |
| 24 | return &dto.MidjourneyResponseWithStatusCode{ |
| 25 | StatusCode: statusCode, |
| 26 | Response: *MidjourneyErrorWrapper(code, desc), |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | //// OpenAIErrorWrapper wraps an error into an OpenAIErrorWithStatusCode |
| 31 | //func OpenAIErrorWrapper(err error, code string, statusCode int) *dto.OpenAIErrorWithStatusCode { |
no test coverage detected