🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.database
Article #397

"Resource Exception" how do I trap it?

#397
From: kelvin
Date: Thu, 20 Oct 2005 04:37
13 lines
1583 bytes
using  JBuilder2005 with FireBird
If I turn off the database (by stopping the guardian)
I get a dialog box saying:

Resource Exception. Unable to complete network request to host "myhost"
Reason:Unable to complete network request to host "myhost"

I get past
 database1.setConnection
 which cant throw Resource Exception  and doesnt throw
DataSetException
where can I trap the Resource Exception?
I want to show users a message like "Perhaps the Database isnt running"
Technical Details
Message-ID: <1129783021.658367.21250@o13g2000cwo.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!o13g2000cwo.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 1073da,15b9ad3ab1a51f91,start
X-Google-Attributes: gid1073da,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!o13g2000cwo.googlegroups.com!not-for-mail
From: "kelvin" <kelvinq415@yahoo.com>
Newsgroups: borland.public.jbuilder.database
Subject: "Resource Exception"    how  do I trap it?
Date: 19 Oct 2005 21:37:01 -0700
Organization: http://groups.google.com
Lines: 14
Message-ID: <1129783021.658367.21250@o13g2000cwo.googlegroups.com>
NNTP-Posting-Host: 220.101.165.64
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1129783027 2161 127.0.0.1 (20 Oct 2005 04:37:07 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 20 Oct 2005 04:37:07 +0000 (UTC)
User-Agent: G2/0.2
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.0; rv:1.7.3) Gecko/20041001 Firefox/0.10.1,gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: o13g2000cwo.googlegroups.com; posting-host=220.101.165.64;
   posting-account=VGFKbAwAAACl2R6hjtCwE0KKpfE7nBS0