java - Why have a project specific RuntimeException? -
Is there anything happening in com.myco.myproj.MyProjRuntimeException, which extends to completley RuntimeException?
yes do uncheck exception Throw it, and sub-squares them.
There is a lot about the fact that the checked exceptions are really good. In short, if I remove a check exception, then does my client really have something to do with it?
Unwanted exceptions are a great way to inform your customers about exceptional situations (including invalid pre-conditions), and still need to call their APIs with call-up blocks. Is not burdened with which, most of the time, there is no purpose other than debugging, tracing etc.
RuntimeException ? It is not elegant , and it is less readable , apart from being exceptionally specific when throwing exceptions, make it your own exception even after the other reasons.
Comments
Post a Comment