Hi there, i have a question about FileUploadException.

In line 80 of MultipartServletWebRequest, the constructor throws
FileUploadException which is checked, and then in line 500 of
ServletWebRequest, it was wrapped to a wickerRuntimeException,

    @Override
    public WebRequest newMultipartWebRequest(Bytes maxsize)
    {
        try
        {
            MultipartServletWebRequest multipart = new
MultipartServletWebRequest(
                httpServletRequest, maxsize);
            multipart.setRequestParameters(getRequestParameters());
            return multipart;
        }
        catch (FileUploadException e)
        {
            throw new WicketRuntimeException(e);
        }
    }


is that a good practice?, why FileUploadException is a checked exception?
because it could be runtime exception because then it is wrapped anyway.
does anybody knows?

Thanks
NM


-- 
Nicolás Meléndez
Java Software Developer

1) Google App Engine works:

1.a) http://www.clasificad.com.ar  (Local free classifieds for  housing,
sale, services, local community, curses,jobs, and events - GAE/J + Wicket +
YUI)

1.b) http://www.chessk.com  (Massive multiplayer chess online  GAE/J +
Applets + Wicket)

2) Linkedin: http://ar.linkedin.com/in/nicolasmelendez

Reply via email to