473,320 Members | 1,861 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

run time exception

hi,

iam getting exception (for duplicate key )displayed when i do ps.executeUpdate(); i ll get this duplicate key exception rarely.
but i dont want the whole eception to be displayed in the console. instead i want to display in single line. i want to display in single readable line

i am catching the exception but still before it comes to catch section it is throwing the exception stack trace in my console.


how to control this.
please help.
May 15 '08 #1
4 1251
BigDaddyLH
1,216 Expert 1GB
hi,

iam getting exception (for duplicate key )displayed when i do ps.executeUpdate(); i ll get this duplicate key exception rarely.
but i dont want the whole eception to be displayed in the console. instead i want to display in single line. i want to display in single readable line

i am catching the exception but still before it comes to catch section it is throwing the exception stack trace in my console.


how to control this.
please help.
Are you executing this code from within an IDE? They can often trap exceptions at the moment they are created.
May 15 '08 #2
JosAH
11,448 Expert 8TB
Are you executing this code from within an IDE? They can often trap exceptions at the moment they are created.
Really? So this get trapped by an IDE?

Expand|Select|Wrap|Line Numbers
  1. MyException magritte= new MyException("ceci n'est pas une erreur");
  2.  
kind regards,

Jos
May 15 '08 #3
BigDaddyLH
1,216 Expert 1GB
Really? So this get trapped by an IDE?

Expand|Select|Wrap|Line Numbers
  1. MyException magritte= new MyException("ceci n'est pas une erreur");
  2.  
kind regards,

Jos
Err, I mean that if you are executing code in debugging mode, execution may break at the point that the exception is thrown, to give you a chance to examine the context.
May 15 '08 #4
JosAH
11,448 Expert 8TB
Ah, ok comprendo; no further questions your Honour.

kind regards,

Jos ;-)
May 15 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

77
by: Charles Law | last post by:
Hi guys I have a time critical process, running on a worker thread. By "time critical", I mean that certain parts of the process must be completed in a specific time frame. The time when the...
11
by: chopsnsauce | last post by:
Here's the example: Dim frm As New FORM1 Try frm.show Catch ex As Exception msgbox ex.message
3
by: Dan | last post by:
Hi all! When I throw my custom Exception class the first time in my code, the compiler takes a lot of time for find the following catch EX: try Throw New MyCustomException("test")
17
by: OlafMeding | last post by:
Below are 2 files that isolate the problem. Note, both programs hang (stop responding) with hyper-threading turned on (a BIOS setting), but work as expected with hyper-threading turned off. ...
6
by: DarkBlue | last post by:
My application makes several connections to a remote database server via tcp/ip. Usually all is fine,but occasionally the server is down or the internet does not work and then there is the 30 sec...
12
by: Ioannis Vranos | last post by:
Perhaps a mechanism can be introduced in the C++0x/1x standard, something simple like defining a function as: void somefunc(void) throw() { // ... }
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.