This could be expressed more semantically using the `@throws` syntax:

```java
 * @return name of the first listed file.
 * @throws FooBarException if no files are found.
 */
```