I have the following code:
var tempLastFileCreated: File = try { files(0) } catch { case e: ArrayIndexOutOfBoundsException => ??? } where files is val files: Array[File] = dir.listFiles()
Now whatever I give in case e I get the message Expression of type Unit doesn't conform to expected type File
I understand that the right hand part of the => has to be something which is of type File.
Can anyone tell me what to put there?