[prev in list] [next in list] [prev in thread] [next in thread]
List: xsp-dev
Subject: Re: Rats, one more...
From: Matt Sergeant <matt () sergeant ! org>
Date: 2001-01-26 8:20:07
[Download RAW message or body]
On Fri, 26 Jan 2001, Donald Ball wrote:
> On Fri, 26 Jan 2001, Matt Sergeant wrote:
>
> > Can you give me an example of both? I might be able to coerce Error into
> > giving me something similar.
>
> well, it varies tremendously from exception to exception. generally,
> though, you'll get something like this from getMessage:
>
> Error opening network connection to mysql.example.com
> Could not parse SQL: selcet * from my_table, error near "selcet"
> ERROR 11301 Fatal Database Exception
>
> and something like this from toString:
>
> java.io.IOException[@a92l]: Premature close of socket
> java.sql.SQLException[@jl201]: Authentication failure for user 'test'
OK that gives me something to go on. I interpret that as:
getMessage gives you the error the database returned
toString gives you the error Java internally generated
I'll see what I can do :-)
--
<Matt/>
/|| ** Director and CTO **
//|| ** AxKit.com Ltd ** ** XML Application Serving **
// || ** http://axkit.org ** ** XSLT, XPathScript, XSP **
// \\| // ** Personal Web Site: http://sergeant.org/ **
\\//
//\\
// \\
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic