As the closure reason states, this is stub code. There are too many placeholders for this to be considered real, working code:
MyException — That sounds like a poor, nondescript choice of name for a class.
// Do stuff to verify it's a java file — What stuff, exactly?
// doc is parsed — No it's not. That function is a no-op.
- "doing something like…" — We can't review "something like"; we review what is.
If you've implemented it, then show us the code you wrote. If you are still designing it, then the question is off-topic for Code Review.
Furthermore, the title of the question, "Proper interface implementation", is a sign that your question is off-topic. As stated in How do I ask a good question?,
The norm is to summarize the goal of the code in the title. Some typical titles are:
- Project Euler 9: finding a Pythagorean triplet
- Game of Life with a Swing UI
- View controller for smoking cessation iOS app
- Validating inputs for a vacation request form
If your code does not have a goal, then it is likely that your question contains hypothetical code, or that you are asking about best practices in general rather than for a review of your code. Such questions are off-topic for Code Review.