File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Sockets and Internet Protocols and the fly likes how to handle errors Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "how to handle errors" Watch "how to handle errors" New topic

how to handle errors

Adam McCrossan

Joined: May 17, 2012
Posts: 1

I'm a little new to sockets but have been using the java merapi bridge as a means of talking to my AIR application. Basically all the merapi bridge is a bunch of classes packaged in jar file and these classes work fine until I receive a rare socket error every once in a while. The problem is I have not been able to catch any of the socket errors and have no means of hadling them. Basically what I would like to do is if I get any sort of socket error, or as matter of fact any error at all, I want to perform a machine reboot. Can anyone please help me out with this one it's driving me crazy as these errors are so intermittent but extremely costly to my end user.

I agree. Here's the link:
subject: how to handle errors
jQuery in Action, 3rd edition