Doing project development, there have been a problem, java exception handling. There is a Swing project, business documents related to the operation code and message operations, which made me feel IOException handling very confused.
File operations, I want to read the configuration file, and either read or type of configuration file conversion involves IOException, how should I handle better, are each delivered to the front, it gives an error message? . Packets, the abnormal yet.
There, Hiberante in HibernateException is a runtime exception, no catch, but if I swing the connection process using the database hibernate, and hibernate configuration files lost, I do not know the front desk do not mistake? And general web project, you need to capture this anomaly?
As an excellent GUI software, it is inevitable that some configuration. If we deliberately do something malicious hands, modify some configuration files, then this software will be able to do without crash?
Hope to have experience in the development of expert advice given, be grateful.