Article View: borland.public.jbuilder.java.language
Article #45Re: Getting exceptions
From: John McGrath [TeamB]
Date: Sun, 19 Oct 2003 23:12
Date: Sun, 19 Oct 2003 23:12
29 lines
1994 bytes
1994 bytes
On 10/15/2003 at 5:30:25 PM, Ralph Steins wrote:
> I need some advise for handling exceptions.
[snip]
> What I want to have is the above message (line 2) and the message
> with the SQL-exception (line 6 here). The first message is handled by
> ex.getMessage();
> How can I get the other one?
> the getStackTrace() method gives only the Stack until the line over
> line 5. (EventDispatchTrhread.java:99)
Have you looked at the getExceptionChain() method, which is provided by
the DataSetException superclass of ResolutionException?
P.S. This is not a Java language question, but rather a question about
the DX components. I think the borland.public.jbuilder.database group
would be the appropriate place for it. I have set follow-ups to that
group.
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<3f931a67@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f8dbc70@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,bb699c4bdcf0c28c X-Google-Attributes: gidf74b3,public X-Google-Thread: 1073da,c30fc078aea966d0,start X-Google-Attributes: gid1073da,public X-Google-ArrivalTime: 2003-10-19 16:39:10 PST From: "John McGrath [TeamB]" <ng-b@JPMcGrath.net> Subject: Re: Getting exceptions Newsgroups: borland.public.jbuilder.java.language,borland.public.jbuilder.database Followup-To: borland.public.jbuilder.database References: <3f8dbc70@newsgroups.borland.com> User-Agent: XanaNews/1.15.7.2 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 NNTP-Posting-Host: 141.151.10.237 Message-ID: <3f931a67@newsgroups.borland.com> Date: 19 Oct 2003 16:12:39 -0700 X-Trace: newsgroups.borland.com 1066605159 141.151.10.237 (19 Oct 2003 16:12:39 -0700) Lines: 29 X-Authenticated-User: jpmcgrath Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail