From: Pim S. <pi...@li...> - 2008-05-19 13:49:02
|
Hello, I've created an RubyCocoa app which uses activerecord and cocoa- bindings to connect to a mysql database. This works perfect but now I've added a SSH tunnel so that a remote database can be used. The application creates the tunnel before creating the db-connection and because this ssh tunnel often gets reset by peer, the app, ofter creates a new database connection. The problem is: when the window which contains the bindings and is populated wth query data is open but the ssh tunnel is broken the complete application crashes with the error: Mysql::Error: Lost connection to MySQL server during query. The reason of the crash is understandable but how can I create an exception for it. Can exceptions be added in Interface Builder? Regards, Pim Snel |