[jdom-interest] Re: NoSuch*Exceptions in JDOM

Tibor Földes tfoeldes at micos.at
Wed Jun 28 03:43:57 PDT 2000


I  like such a contruct , it is clean , complete,effective (JAVA has a
fast
exception handling)
and with JDOM is excellent supported..

int foo = 2;  //default value
try{
    foo = el.getAttribute("foo").getIntValue();
}catch(NumberFormatException e){
    System.err.println("Invalid value");
}catch{Exception e){
}

I like the proposal for Properties like default methods not.
It is about the absence of an Attribute Object and not
about absence of the value of an Attribute Object.
An how to handle cases  as e.g. invalid NumberFormat ?


Thanks
Tibor


jdo




More information about the jdom-interest mailing list