From: | Rainer Klute <klute(at)rainer-klute(dot)de> |
---|---|
To: | Alex Dovlecel <dovle(at)kbs(dot)twi(dot)tudelft(dot)nl> |
Cc: | pgsql-jdbc(at)postgresql(dot)org, "Rainer Klute" <rainer(dot)klute(at)epost(dot)de> |
Subject: | Re: Disabling the printStackTrace |
Date: | 2002-12-16 06:24:11 |
Message-ID: | 200212160624.gBG6OBe01732@tommy.rainer-klute.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)rainer-klute(dot)de
Körner Grund 24 Telefon: +49 172 2324824
D-44143 Dortmund Telefax: +49 231 5349423
From | Date | Subject | |
---|---|---|---|
Next Message | Barry Lind | 2002-12-16 16:51:18 | [Fwd: Re: Patch for JDBC timestamp problems] |
Previous Message | Randolph Jones | 2002-12-16 01:29:04 | failed getting backend encodng |