```
checkArgument(dir.isDirectory, "%s is not a directory", dirPath);
```
? I know it's a different exception type, but still..?