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
class ErrorResolver(private val context: Context) { | |
private val ignoreLoggingExceptions = arrayListOf<Type>( | |
// Add exception types to ignore for logging. | |
) | |
private val exceptionToMessage = mapOf<Type, Int>( | |
// Add exception type to string resource. | |
) |
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
open class AppException( | |
message: String, | |
cause: Throwable? = null, | |
val debugContext: Map<String, String>? = null | |
) : Exception(message, cause) |