New topic: 

Handle an Exception

<http://forums.realsoftware.com/viewtopic.php?t=37032>

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        Robert96757          Post subject: Handle an ExceptionPosted: 
Tue Jan 11, 2011 1:18 pm                         
Joined: Thu Dec 20, 2007 1:38 am
Posts: 69                Alright, i have been searching the forums for about an 
hour with quite a few answers but nothing remotely close to my situation...  I 
would like to catch a nilobjectexception.

I was forced to rely on SqliteDB for a very small application that has maybe 10 
users.  The application works great, and every single entry into the database 
is a split second task, making concurrency almost a non existent problem.  
However there is always that chance the processes might hit, and all I want to 
do is handle the error and let the user continue after clicking 'OK'....to 
allow them to press the submit button again. (Make another try)  

I have used the following code to catch the error successfully.  the program no 
longer closes, but the program doesnt work either...

Code:  if not ErrorHandle.HandleException(err,"WMain.EventHandlers.Open") then 
// <- SPECIFY LOCATION
  // calls the HandleException method and passes it the error type
  // and the location of where the error happened
  // if that doesn't work then
  Raise err
  end if

Linked to the Global Module.

Can someone help lead me in the right direction.  The user manual states that 
it can draw a blank canvas instead of showing the error when a picture could 
not be loaded.....how could I make that a MsgBox saying 'sorry, try again' and 
let the user continue.  it would have to do with try-catch?  Sorry, this is 
newer territory for me.

thanks for the help.   
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to