Author |
Message
|
GaryGWood |
Posted: Tue Jun 15, 2004 6:15 am Post subject: Supressing 2033 error messages |
|
|
Apprentice
Joined: 14 Oct 2003 Posts: 48 Location: Austin, TX
|
I have read that the following lines of code will supress 2033 "error" messages:
Code: |
MQEnvironment.disableTracing ();
MQException.log = null; |
Does this suppress all error messages? |
|
Back to top |
|
 |
sfari |
Posted: Tue Jun 15, 2004 6:22 am Post subject: |
|
|
Centurion
Joined: 15 Apr 2003 Posts: 144
|
Tracing is an additional feature to find errors in MQ programms. It is described in the book "System Administrating Guide". It has nothing to do with the error codes, the api functions are returning. |
|
Back to top |
|
 |
vennela |
Posted: Tue Jun 15, 2004 8:19 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
Quote: |
I have read that the following lines of code will supress 2033 "error" messages: |
If you just want to suppress 2033s then in the catch block put an if statement and check the MQException for 2033. |
|
Back to top |
|
 |
GaryGWood |
Posted: Tue Jun 15, 2004 12:33 pm Post subject: |
|
|
Apprentice
Joined: 14 Oct 2003 Posts: 48 Location: Austin, TX
|
vennela wrote: |
If you just want to suppress 2033s then in the catch block put an if statement and check the MQException for 2033. |
Thanks, I did do that but the error message writes out to the console before it goes to the catch block. Any way to prevent that? |
|
Back to top |
|
 |
clindsey |
Posted: Tue Jun 15, 2004 1:17 pm Post subject: |
|
|
Knight
Joined: 12 Jul 2002 Posts: 586 Location: Dallas, Tx
|
Gary,
MQException.log = null will prevent the console output on errors.
Charlie |
|
Back to top |
|
 |
GaryGWood |
Posted: Wed Jun 16, 2004 11:01 am Post subject: |
|
|
Apprentice
Joined: 14 Oct 2003 Posts: 48 Location: Austin, TX
|
|
Back to top |
|
 |
|