Hi all, To my opinion, if the condition of raising the exception mostly depends on input data, the checked exception should be thrown (MOLInvalidFormatException). In this case the caller can recover somehow.
If the situation much depends on other external factors, the non-checked exception should be thrown (OutOfDiskSpaceException). Most likely the caller cannot recover in this case. Just my opinion. On 13.07.2011 22:33, Thomas Strunz wrote: > But does it enforce good/non-harmful error handling? > > I would say a very large amount will be infamous: > > try{ > ... > } catch(Exception ex){ > } > > or > > try{ > ... > } catch(Exception ex){ > ex.printStacksTrace() > } -- With best regards, Dmitry ------------------------------------------------------------------------------ AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on "Lean Startup Secrets Revealed." This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev _______________________________________________ Cdk-user mailing list Cdk-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cdk-user