Possible Duplicate:
In Java, when should I create a checked exception, and when should it be a runtime exception?
I heard a lot of things about Exception over RuntimeException but no clear arguments are given. I also see a lot of topics on Stack Overflow, but no one seems to be directly this question (if this is the case, thanks to close it as duplicate and show me the link !)
I would like to definitively knows when to use a RuntimeException and when to use a classic Exception.
For a business logic (ie the exception can be user fault (bad data) ), do you use exception or runtime ?
Have you got 2 or 3 advices you apply to choose to throw either an Exception or a Runtime Exception when you create your own Exception (in a business logic) ?