Re: Disabling the printStackTrace - Mailing list pgsql-jdbc

From Rainer Klute
Subject Re: Disabling the printStackTrace
Date
Msg-id 200212160624.gBG6OBe01732@tommy.rainer-klute.de
Whole thread Raw
In response to Disabling the printStackTrace  (Alex Dovlecel <dovle@kbs.twi.tudelft.nl>)
List pgsql-jdbc
>I don't want that, every time I got an exception from psql, the client driver
>is printing it on the stderr (i think, or maybe on stdout). For me is just
>enough to catch it and display the appropriate message in the Logger or maybe
>a JDialog. :o)

You can use some static methods in the System class to reassign
err, out or in to alternate streams:

static void setErr(PrintStream err)

static void setIn(InputStream in)

static void setOut(PrintStream out)

Best regards
Rainer Klute

                           Rainer Klute IT-Consulting GmbH
  Dipl.-Inform.
  Rainer Klute             E-Mail:  klute@rainer-klute.de
  Körner Grund 24          Telefon: +49 172 2324824
D-44143 Dortmund           Telefax: +49 231 5349423


pgsql-jdbc by date:

Previous
From: "Randolph Jones"
Date:
Subject: failed getting backend encodng
Next
From: Scott Taylor
Date:
Subject: JDBC - Open Office