--- Papo Napolitano <[EMAIL PROTECTED]> wrote: > Hi! > > If have a function that returns some kind of object (a HashMap for > example)... How can I do to return an error value if the function fails ?? > > Cheers, > > Papo >
your function should then throw an exception (perhaps, you'll have to create your own one to meet your specific needs, if standard ones don't do the job). in return the caller method must have a catch block to handle the error. read the docs for further info :) __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
