-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4d72b0d
commit c2be0a6
Showing
2 changed files
with
55 additions
and
24 deletions.
There are no files selected for viewing
16 changes: 14 additions & 2 deletions
16
...lient/src/commonMain/kotlin/com/xebia/functional/openai/errors/ResponseSerializerError.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,16 @@ | ||
package com.xebia.functional.openai.errors | ||
|
||
class ResponseSerializerError(message: String, cause: Throwable? = null) : | ||
Exception(message, cause) | ||
data class ResponseSerializerError( | ||
override val message: String, | ||
override val cause: Throwable?, | ||
val info: ResponseErrorInfo, | ||
) : Exception(message, cause) | ||
|
||
data class ResponseErrorInfo( | ||
val requestUrl: String, | ||
val requestMethod: String, | ||
val requestBody: String, | ||
val responseStatus: Int, | ||
val responseHeaders: String, | ||
val responseBody: String | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters