You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fun readAndParseFile(): TomlFile {
try {
val ktomlPath = toml.toPath()
val ktomlLinesFromFile = FileSystem.SYSTEM.read(ktomlPath) {
// FixMe: may be we need to read and at the same time parse (to make it parallel)
generateSequence { readUtf8Line() }.toList()
}
return parseStringsToTomlNode(ktomlLinesFromFile)
} catch (e: FileNotFoundException) {
println("Not able to find toml-file in the following path: $toml")
throw e
}
}
diktat fixes it with * @throws e instead of * @throws FileNotFoundException
The text was updated successfully, but these errors were encountered:
diktat fixes it with
* @throws e
instead of* @throws FileNotFoundException
The text was updated successfully, but these errors were encountered: