Quantcast
Channel: Jive Syndication Feed
Viewing all articles
Browse latest Browse all 6

Public Methods can throw private Exceptions

$
0
0

What I didn´t know until I tried:

If you create a private exception class you can throw its objects even in a public Method:

 

 

 

 

This is quite coherent, because one can catch one of the superclasses (cx_static_check, cx_root) of the exception even if the concrete exception class is not accessible.


Viewing all articles
Browse latest Browse all 6

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>