Skip to content

Commit

Permalink
refactor: add more info to generic core failure logs (#2218)
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamadJaara authored Nov 13, 2023
1 parent ab4e95d commit 7cbe0fe
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,11 @@ sealed class EncryptionFailure : CoreFailure.FeatureFailure() {

sealed class StorageFailure : CoreFailure {
data object DataNotFound : StorageFailure()
data class Generic(val rootCause: Throwable) : StorageFailure()
data class Generic(val rootCause: Throwable) : StorageFailure() {
override fun toString(): String {
return "Generic(rootCause = ${rootCause.stackTraceToString()})"
}
}
}

private const val SOCKS_EXCEPTION = "socks"
Expand Down

0 comments on commit 7cbe0fe

Please sign in to comment.