← Docs
kotlin-stdlib / kotlin.io.path / FileVisitorBuilder / onVisitFileFailed

onVisitFileFailed

JVM
JRE7
1.0
abstract fun onVisitFileFailed (
function : ( file : Path , exception : IOException ) -> FileVisitResult )

(source)

Overrides the corresponding function of the built file visitor with the provided function .

By default, FileVisitor.visitFileFailed of the built file visitor re-throws the I/O exception that prevented the file from being visited.

Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Supported and developed by JetBrains .
Kotlin™ is protected under the Kotlin Foundation
and licensed under the Apache 2 license .