title: Which exception should be thrown for an invalid file name?
body: <p>I have a method which accepts a filename as a parameter, all filenames should end with '.csv'. Which exception should I throw if a filename that does not end with .csv is passed?</p>
  
  <p>Or should I take a different approach?</p>