Mittwoch, 21. November 2012

Java - Continue process after an Exception

Easier than I thought actually..

Execution breaks are caused when the exception is unhandled.. So in case you have a "malformedurlexception", you need to catch that one so your application knows what to do and how to continue in that case..

Surround your lines where the exception may occur with a
try {
}
and catch the possible exception with a
catch (malformedurlexception e) {
}
Basically, just handle your exceptions to continue your process :)

(I'm still new to this stuff.. feel free to correct me)

Keine Kommentare:

Kommentar veröffentlichen