Hi Jeff

You could try something like:

try
  database.open();
except
  on e: exception do
    if e is edbengineerror then
    begin
      raise edatabaseerror.create('omg....something just happened!!');
    end;
end;

If you need even more elaborate examples of trapping, I'm more than
happy to help.

- Richard 

On Thu, 17 Mar 2005 15:33:31 -0000, jeffgallant2002
<[EMAIL PROTECTED]> wrote:
>  
>  Delphi 6 - Oracle 9i Lite database
>  
>  I have a TDatabase object that seems to throw an exception when 
>  being opened in rare circumstances and never on the development 
>  system where the debugger would display the message. I'd like to 
>  trap the exception message in my code so I can work out why it is 
>  failing.
>  
>  My code is of the form 
>  
>  try
>    mydatabase.open
>  except
>    do something
>    <this is where I'd like to trap the exception message>
>    end
>  
>  I'm sure it is trivially easy but I can't find it in the manuals.
>  
>  Hope someone can help.
>  
>  Jeff
>  
>  
>  
>  
> 
>  -----------------------------------------------------
>  Home page: http://groups.yahoo.com/group/delphi-en/
>  To unsubscribe: [EMAIL PROTECTED] 
> 
>  
>  
>  Yahoo! Groups Sponsor 
>  
>  ADVERTISEMENT
>  
>  
>  ________________________________
>  Yahoo! Groups Links
>  
>  
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/delphi-en/
>   
> To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>   
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to