Skip to content

Instantly share code, notes, and snippets.

View robderijk's full-sized avatar

Rob de Rijk robderijk

  • Harborn BV
  • Roelofarendsveen
View GitHub Profile
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.
)
open class AppException(
message: String,
cause: Throwable? = null,
val debugContext: Map<String, String>? = null
) : Exception(message, cause)