Make some error messages localizable (#9811)

* Make error message of 3 exceptions localizable.

* Revert unnecessary file handle exception change.
This commit is contained in:
Mekanik
2023-08-06 06:50:43 -07:00
committed by GitHub
parent 26b3eb696c
commit 8f395d98e7
4 changed files with 9 additions and 3 deletions

View File

@ -215,7 +215,7 @@ abstract class HttpSource : CatalogueSource {
chapterListParse(response)
}
} else {
Observable.error(Exception("Licensed - No chapters to show"))
Observable.error(LicensedMangaChaptersException())
}
}
@ -404,3 +404,5 @@ abstract class HttpSource : CatalogueSource {
*/
override fun getFilterList() = FilterList()
}
class LicensedMangaChaptersException : Exception("Licensed - No chapters to show")