title: Appropriate exception to throw when a parsing error occurs?
body: <p>When parsing a custom (text) file format in Java, what is the appropriate exception to throw when a syntax error is encountered? I'm looking for something analogous to .NET's <a href="http://msdn.microsoft.com/en-us/library/system.formatexception.aspx">FormatException</a>.</p>
  
  <hr>
  
  <p>Edit: The part about parsing might be slightly misleading. What I'm doing is not so much parsing as reading a line from a file, passing it to a method that extracts colon-separated fields from it, hence why I thought FormatException would be appropriate.</p>