|
@@ -70,8 +70,11 @@ open class SourceManager(private val context: Context) {
|
|
|
return name
|
|
|
}
|
|
|
|
|
|
- private fun getSourceNotInstalledException(): Exception {
|
|
|
- return Exception(context.getString(R.string.source_not_installed, id.toString()))
|
|
|
+ private fun getSourceNotInstalledException(): SourceNotInstalledException {
|
|
|
+ return SourceNotInstalledException(id)
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ inner class SourceNotInstalledException(val id: Long) :
|
|
|
+ Exception(context.getString(R.string.source_not_installed, id.toString()))
|
|
|
}
|