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

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -