|
When I first started programming in .NET I used try/catches all the time. I am finding lately though I rarely ever use them for web applications. My exception (no pun intentended) is unmanaged code that could potentially create a memory leak such as com...
Started by Al Katawazi on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
For instance, let's say), you'll need to rely on exceptions... .
You of these cases, you'll want to catch an exception and communicate that to the user.
catch exceptions?
Exceptions (rightly or wrongly) are the error mechanism of the .Net language.
|
|
Is it good practice to have more than one try{} catch{} statement per method?
Started by Miyagi Coder on
, 13 posts
by 13 people.
Answer Snippets (Read the full thread at stackoverflow):
To....
I would say that depends.
It's better to have one try/catch with multiple catches to handle each type of Exception be in separate try catches, because when you catch the exception, you generally want to wrap differently.
|
|
Thanks! the question is solved in all the answers given.
Original question follows:
given a traceback error log, i don't always know how to catch a particular exception.
my question is in general, how do i determine which "except" clause to write in order...
Started by Berry Tsakala on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Except.
Try: ...
Import socket ...
The answer to your question is: You have to catch socket.error .
|
Ask your Facebook Friends
|
I'm running into a strange problem when using unittest.assertRaises . When executing the code below I get the following output:
E ERROR: testAssertRaises (__main__.Test) Traceback (most recent call last): File "C:\home\python_test\src\derived.py", line...
Started by desolat on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
When you run derived.py, it is run as the __main__ module (since you ran it directly... .
By the way, that method is horrible in itself, I wonder why you're doing this .
The problem is probably that your BaseClass.get() method is returning you another class .
|
|
Im currently using the hilo id generator for my classes but have just been using the minimal of settings eg
<class name="ClassA"> <id name="Id" column="id" unsaved-value="0"> <generator class="hilo" /> </id> ...
But should I really...
Started by Gareth on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
I asked this question again but in the nhusers group, see here for response i got How did you solve this? My implementing your own idgenerator?
I did and maybe a little bit dirty for the moment but anyway:
public class TableHiLoGeneratorWithMultipleColumns... .
|
|
Mitch catches his first Spaniard
A short video of my young bloke catching his first Spaniard. After losing his first one of around 20lb at the boat the trip before, he chimes in with a 46lb snodger.
Not bad for a 10yo.
Enjoy!
Heath
Gold Coast
WWW.GCFISHING...
Started by Heath on
, 12 posts
by 10 people.
Answer Snippets (Read the full thread at ausfish):
~Chuck Clark What a great fish, well done mitch! Re: Mitch catches his first,
Tony Re: Mitch catches his first Spaniard....
A lifelong memory for the young fella care of the lawn .
Re: Mitch catches his first Spaniard Fantastic stuff mate.
|
|
It was suggested we post our "Big catches here" Just a pic to show off you biggest bass. I'll start it off.
9.69lbs caught Jan 2009, Sam Rayburn
Bryan McDonough
2011 Nitro Z9 Mercury 250 Pro XS
Nitro State Team
Started by BMCD on
, 20 posts
by 18 people.
Answer Snippets (Read the full thread at bbcboards):
'06 Nitro 911, 250 Verado, Fury 25
Lowrance HDS10/8 LSS-1
Sonic Hub LCX-4000 LWx-1
MercMonitor Holy... .
Matching 6.5's
a 10
another
one more
oh here's another
almost left this one out
very large
DaveT Gilroy,Ca .
Clair in Michigan.
Some Smallmouths from St.
|
|
Too much unpleasantness in the main thread.
Please keep the main thread to the basics. Report the facts of catches, conditions, pics etc.
Anything else, like well dones, don't do that etc. will be moved here. Anything nasty will be deleted.
Last warning...
Started by Pterois on
, 20 posts
by 7 people.
Answer Snippets (Read the full thread at sareefkeeping):
But when you come on a public forum and boast about the catches.
But when you come on a public forum and boast about the catches that you have made (especially don't profess to be all knowing.
|
|
Fantastic Post subject: Re: Manager Job Catches the Eye of Former Chief Posted: Fri May 06, 2011 12:49 pm New Addition
Joined: Thu Oct 14, 2010 12:45 am
Posts: 82
Location: Earth Fine then, you apply.
Answer Snippets (Read the full thread at freeforums):
What happened to everyone having the same standard of living regardless of how hard you ... .
I am suprised you acually support this.
I was thinking that any socialist worth his salt would be outraged by having a government worker double dipping like this .
|
|
Fake security software catches out Apple owners Share This Thread
Only registered members can view Quote: d posts. don't you just love all those Mac users that harp on about their OS that is impervious to attack? Always so smug and laughing at Windows...
Started by AdrianH on
, 11 posts
by 4 people.
Answer Snippets (Read the full thread at iamgrumpy):
Ostrich syndrome at work, they should by now have learned that while... .
If I ever get real rich, I hope I'm not real mean to poor people, like I am now, Missy .
URL:
Only registered members can view URLs.
Apple seems to be at the skirting issues game again .
|