Skip to content

Commit

Permalink
chore: Add kDoc for UnexpectedApiErrorFormatException
Browse files Browse the repository at this point in the history
  • Loading branch information
sirambd committed Oct 15, 2024
1 parent 3fe5973 commit 7ff7f94
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,13 @@
*/
package com.infomaniak.multiplatform_swisstransfer.network.exceptions

/**
* Thrown when an API call returns an error in an unexpected format that cannot be parsed.
*
* This exception indicates that the API response format is different from what was expected,
* preventing proper parsing of the error details.
*
* @param statusCode The HTTP status code returned by the API.
* @param bodyResponse The raw response body from the API that could not be parsed.
*/
class UnexpectedApiErrorFormatException(val statusCode: Int, val bodyResponse: String) : Exception(bodyResponse)

0 comments on commit 7ff7f94

Please sign in to comment.