pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Peter.Zoche@materna.de
Cc: pgsql-jdbc@postgresql.org
Subject: Re: SQLException and error code
Date: Tue, 26 Jul 2005 11:54:33 -0500 (EST)
Message-ID: <Pine.BSO.4.56.0507261152440.17237@leary.csoft.net> (raw)
In-Reply-To: <3617A3C21370D045B75C0A40A7A6530D0B37E192@ntexc2buc.do-office.buc.materna.com>
References: <3617A3C21370D045B75C0A40A7A6530D0B37E192@ntexc2buc.do-office.buc.materna.com>



On Tue, 26 Jul 2005 Peter.Zoche@materna.de wrote:

> Because in the postgresql documentation you can find the following page:
> 
> http://www.postgresql.org/docs/8.0/interactive/errcodes-appendix.html#ERRCOD
> ES-TABLE
> 
> There you can see all ERROR CODES!
> 
> So why is there a method getErrorCode(), if the only thing it does
> is to return zero?

The table is mislabeled a little bit, these are actually SQL State codes.  
Note that getErrorCode returns an int, so certainly couldn't return a sql 
state like "0100C".

Kris Jurka




view thread (8+ messages)  latest in thread

Message-ID: <Pine.BSO.4.56.0507261152440.17237@leary.csoft.net>
Permalink:  ../Pine.BSO.4.56.0507261152440.17237@leary.csoft.net/
Also on:    postgresql.org/message-id/Pine.BSO.4.56.0507261152440.17237@leary.csoft.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: books@ejurka.com, Peter.Zoche@materna.de
  Subject: Re: SQLException and error code
  In-Reply-To: <Pine.BSO.4.56.0507261152440.17237@leary.csoft.net>
  References: <3617A3C21370D045B75C0A40A7A6530D0B37E192@ntexc2buc.do-office.buc.materna.com> <Pine.BSO.4.56.0507261152440.17237@leary.csoft.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox