The general rule is
1. if you can't handle the exception don't.
2. If you are doing business logic throw a custom exception for when you need
to fail a process.
3. Inherit from exception and do not use application exception.
I think your code falls into rule 1.
It's up to the ui to catch and
On Wed, Jun 9, 2010 at 11:59 AM, Bec Carter wrote:
> > Hi!
> From the more experienced programmers here, when is it appropriate to
> create custom exceptions?
> I am finding a mix of opinions around.
>
> eg. I have a class which generates reports. Part of the process is to
> create a directory if
Yes, no doubt on this one - always wrap the original exception inside
the custom one
On Wed, Jun 9, 2010 at 1:13 PM, wrote:
> Note that if you use the latter approach then you should always include
> the original exception as an inner exception to the
> ReportGenerationException.
>
> It's very f
Note that if you use the latter approach then you should always include
the original exception as an inner exception to the
ReportGenerationException.
It's very frustrating to debug an application and get a general
exception that doesn't include all the information you need or at least
could have
Well actually its currently the former, the caller passes in the temp
directory for the report generator to use. I did it like this because
the report generator is a separate assembly (a class library) so the
caller reads the configured value from the app.config and passes it in
to the library. Is
Hi Bec,
I try to approach these problems pragmatically. I'm unaware of your development
environment, deadlines etc. So, pragmatically I say just to do the bare minimum
to start with. For me that would be to let the caller of the class handle the
exceptions they care about. Once you have some fe
On 9 June 2010 11:59, Bec Carter wrote:
> eg. I have a class which generates reports. Part of the process is to
> create a directory if it does not already exist. If the create
> directory fails several types of exceptions can be thrown like
> System.UnauthorizedAccessException, DirectoryNotFoun
Does the user of the class specify the directory? Or is this hidden from them?
If the former, it's entirely appropriate to throw IOExceptions because that's
what they would expect. If the later, then throw the custom exception.
-Original Message-
From: ozdotnet-boun...@ozdotnet.com [mail
Hi!
>From the more experienced programmers here, when is it appropriate to
create custom exceptions?
I am finding a mix of opinions around.
eg. I have a class which generates reports. Part of the process is to
create a directory if it does not already exist. If the create
directory fails several
*Hi Greg*
Check out the new Power Tools for VS2010
http://visualstudiogallery.msdn.microsoft.com/en-us/d0d33361-18e2-46c0-8ff2-4adea1e34fef
Especially the "*Align Assignments*" feature
Turns this
into
You will love that one!!
;-)
.peter.gfader.
http://blog.gfader.com/
http://twitter.com/p
I had a similar thing on my Amiga 500. It sounded so bad (as in
harmful) that I paniced and reset the computer after only a few notes.
David
"If we can hit that bullseye, the rest of the dominoes
will fall like a house of cards... checkmate!"
-Zapp Brannigan, Futurama
On Wed, Jun 9, 2010 at
As I recall there was a similar effort on the trusty old Commodore
1541 disk drives - although I'm not sure it was good for the drive head.
RC
On 8 Jun 2010, at 08:57, "Greg Keogh" wrote:
I did not see it happen myself, but a Honeywell engineer told me in
the late 70s that one of his colle
I once worked on a Univac 418-III based message switching system in the late
70s, early 80s that used 18-bit wide (2 x 8-bit words plus parity bit) ferrite
core memory. Univac programmers had written software in assembler that allowed
‘music’ to be heard in a transistor radio tuned between stat
But did you check that? If they had "newer" versions the msi wouldn't
update shared components etc.
|-Original Message-
|From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-
|boun...@ozdotnet.com] On Behalf Of Adrian Halid
|Sent: Tuesday, 8 June 2010 6:30 PM
|To: ozDotNet
|Subject: RE: [
Yeah. They all get included in a MSI package.
So they will be same on both machines
Regards
Adrian Halid
Senior Analyst/Programmer
IT Vision Australia Pty Ltd (ABN: 34 309 336 904)
PO Box 881, Canning Bridge WA 6153
Level 3, Kirin Centre, 15 Ogilvie Road, Applecross, WA, 6153
P: (08) 9315 70
Did you want the machine rebooting automatically after a BSOD ? (as you can
turn that off)
Can you add another VM which is identical to your current one minus your
application? (should be easy to Clone( ) your VM). You could then see if
that machine BSOD's at the same time, to rule out your app
Hi Arian,
Have you checked all the dependencies are the same as your test bed's
versions ?
|-Original Message-
|From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-
|boun...@ozdotnet.com] On Behalf Of Adrian Halid
|Sent: Tuesday, 8 June 2010 5:35 PM
|To: ozdotnet@ozdotnet.com
|Subject:
I did not see it happen myself, but a Honeywell engineer told me in the late
70s that one of his colleagues had written a program that made the 7 inch tape
drive transports jitter in such a way that they played music – Greg
Hi All,
One of my customers is having issues with one of the VB6 software packages we
develop.
They are running Server 2008 R2 with Remote Desktop Services (Terminal Server),
with native 2008 load balancing.
I believe it is a virtual server running in VMWare on a Redhat box.
The System specs a
19 matches
Mail list logo