[one-users] Java OCA: poor choiche of Exception class

Gian Uberto Lauri saint at eng.it
Mon Apr 11 10:29:42 PDT 2011


>>>>> "CMS" == Carlos Martín Sánchez <cmartin at opennebula.org> writes:

CMS> Hi Gian Uberto, Thank you for your feedback. As you may know, we
CMS> use mainly our Ruby bindings for external tools and extensions,
CMS> so these comments about the Java API are very welcome.  Please
CMS> feel free to open a ticket in our development portal [1], along
CMS> with any other comments, suggestions or patches.

Ticket #572  has been created.  There are two  version of the  Error I
add. The  firs one uses  java.lang.Error that is more  appropriate but
breaks the  legacy code. A  second version  does not change  the class
name (is  an Error after  all) but extends RuntimeException  since you
should  not write  a  catch  code for  it,  you  should provide  valid
resources for the program to run correctly.

--
ing. Gian Uberto Lauri
Ricercatore / Reasearcher
Laboratorio Ricerca e Sviluppo / Research & Development Lab.
Area Calcolo Distribuito / Distributed Computation Area

GianUberto.Lauri at eng.it

Engineering Ingegneria Informatica spa
Corso Stati Uniti 23/C, 35127 Padova (PD) 

Tel. +39-049.8283.571         | main(){printf(&unix["\021%six\012\0"], 
Fax  +39-049.8283.569		  |    (unix)["have"]+"fun"-0x60);}   
Skype: gian.uberto.lauri	  |          David Korn, AT&T Bell Labs             
http://www.eng.it 			  |          ioccc best One Liner, 1987             



More information about the Users mailing list