Click here to Skip to main content
15,911,132 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: how to make transparent control above video? Pin
Bob X17-Jul-06 11:14
Bob X17-Jul-06 11:14 
AnswerRe: how to make transparent control above video? Pin
Andrew Lygin20-Jul-06 9:13
Andrew Lygin20-Jul-06 9:13 
QuestionException handling in .NET Pin
serious-sam14-Jul-06 0:35
serious-sam14-Jul-06 0:35 
AnswerRe: Exception handling in .NET Pin
Alois Kraus14-Jul-06 0:57
Alois Kraus14-Jul-06 0:57 
GeneralRe: Exception handling in .NET Pin
serious-sam14-Jul-06 4:14
serious-sam14-Jul-06 4:14 
GeneralRe: Exception handling in .NET [modified] Pin
Ray Cassick14-Jul-06 4:31
Ray Cassick14-Jul-06 4:31 
GeneralRe: Exception handling in .NET Pin
Alois Kraus15-Jul-06 1:51
Alois Kraus15-Jul-06 1:51 
AnswerRe: Exception handling in .NET Pin
Colin Angus Mackay14-Jul-06 1:02
Colin Angus Mackay14-Jul-06 1:02 
misha1983 wrote:
Can someone cast light on why are exceptions being handled this way in .NET? What are the advantages of treating all exceptions as run-time exceptions?


I would say that the checked exceptions in Java are still run-time exceptions (they get thrown at run-time, not at compile time) it is just that Java has the ability to explicitly declare which exceptions a method will throw as part of the method signature and the compiler just ensures they are either caught or become part of the signature of the calling method.

I would say that the best discipline would be to ensure that, when you document the code, you define which exceptions a method will throw in the documentation. Intellisence in Visual Studio will read the XML documentation and generate appropriate tool tips while you are typing the method name to remind you that exceptions are thrown.


misha1983 wrote:
Is it something that you just learn to deal with as a .NET developer? How do you deal with it?


I've never really thought about it before. I was a C++ developer since 1992 before .NET came along and it never had checked exceptions either. In fact, in C++ you could throw any object you liked as an exception - which is probably a worse situation.


Scottish Developers events:
* .NET debugging, tracing and instrumentation by Duncan Edwards Jones and Code Coverage in .NET by Craig Murphy
* Developer Day Scotland: are you interested in speaking or attending?

My: Website | Blog
GeneralRe: Exception handling in .NET Pin
Jun Du14-Jul-06 5:21
Jun Du14-Jul-06 5:21 
AnswerRe: Exception handling in .NET Pin
Kevin McFarlane17-Jul-06 0:56
Kevin McFarlane17-Jul-06 0:56 
QuestionControlling visibility of controls in a single web form for two different user groups Pin
Renukapadhamanaban13-Jul-06 21:00
Renukapadhamanaban13-Jul-06 21:00 
AnswerRe: Controlling visibility of controls in a single web form for two different user groups Pin
manish2414-Jul-06 1:18
manish2414-Jul-06 1:18 
GeneralRe: Controlling visibility of controls in a single web form for two different user groups Pin
Renukapadhamanaban16-Jul-06 14:10
Renukapadhamanaban16-Jul-06 14:10 
AnswerRe: Controlling visibility of controls in a single web form for two different user groups Pin
Jim Conigliaro17-Jul-06 1:58
Jim Conigliaro17-Jul-06 1:58 
QuestionSerial Port 2.0 to 1.1 backward compatibility Pin
Dominick O'Dierno13-Jul-06 6:39
Dominick O'Dierno13-Jul-06 6:39 
AnswerRe: Serial Port 2.0 to 1.1 backward compatibility Pin
Dan Neely13-Jul-06 7:01
Dan Neely13-Jul-06 7:01 
GeneralRe: Serial Port 2.0 to 1.1 backward compatibility Pin
Dominick O'Dierno13-Jul-06 7:20
Dominick O'Dierno13-Jul-06 7:20 
GeneralRe: Serial Port 2.0 to 1.1 backward compatibility Pin
Dan Neely13-Jul-06 8:41
Dan Neely13-Jul-06 8:41 
GeneralRe: Serial Port 2.0 to 1.1 backward compatibility Pin
Dominick O'Dierno13-Jul-06 8:47
Dominick O'Dierno13-Jul-06 8:47 
AnswerRe: Serial Port 2.0 to 1.1 backward compatibility Pin
Kurt _B17-Jul-06 10:06
Kurt _B17-Jul-06 10:06 
GeneralRe: Serial Port 2.0 to 1.1 backward compatibility Pin
Dan Neely17-Jul-06 10:23
Dan Neely17-Jul-06 10:23 
QuestionWeb Services in .NET CF Pin
archies_san13-Jul-06 5:31
archies_san13-Jul-06 5:31 
AnswerRe: Web Services in .NET CF Pin
Mike Dimmick14-Jul-06 4:59
Mike Dimmick14-Jul-06 4:59 
Question1421 Control ID not found Pin
mmhu13-Jul-06 3:30
mmhu13-Jul-06 3:30 
QuestionCovert project from .Net to Visual Studio 2005 Pin
HarishDixit13-Jul-06 0:23
HarishDixit13-Jul-06 0:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.