Skip to content

Commit

Permalink
Fix detekt
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-tennert committed Sep 20, 2024
1 parent 7f22fc0 commit 7df4190
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ sealed interface RefreshFailureCause {

/**
* The refresh failed due to a network error
* @param exception The exception that caused the error
*/
data class NetworkError(val exception: Throwable) : RefreshFailureCause

/**
* The refresh failed due to an internal server error
* @param exception The rest exception that caused the error
*/
data class InternalServerError(val exception: RestException) : RefreshFailureCause

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ sealed interface SessionStatus {

/**
* This status means that [Auth] had an error while refreshing the session
* @param cause The cause of the error
*/
data class RefreshFailure(val cause: RefreshFailureCause) : SessionStatus

Expand Down

0 comments on commit 7df4190

Please sign in to comment.