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

.NET (Core and Framework)

 
AnswerRe: Dowloading Address Book from Hotmail, Yahoo, Gmail etc... Pin
Dazzzzzz17-Jan-06 19:09
Dazzzzzz17-Jan-06 19:09 
GeneralRe: Dowloading Address Book from Hotmail, Yahoo, Gmail etc... Pin
Sarbjit Chawla18-Jan-06 6:07
Sarbjit Chawla18-Jan-06 6:07 
QuestionPlatform invoke on PocketPC 2002 (Toshiba e740) Pin
Federico Milano16-Jan-06 3:14
Federico Milano16-Jan-06 3:14 
QuestionInstalling user customizable files Pin
topus16-Jan-06 0:47
topus16-Jan-06 0:47 
QuestionGet Error message in Catch part Pin
Vipul Mehta16-Jan-06 0:18
Vipul Mehta16-Jan-06 0:18 
AnswerRe: Get Error message in Catch part Pin
Robert Rohde16-Jan-06 0:30
Robert Rohde16-Jan-06 0:30 
GeneralRe: Get Error message in Catch part Pin
Vipul Mehta16-Jan-06 0:32
Vipul Mehta16-Jan-06 0:32 
AnswerRe: Get Error message in Catch part Pin
Guffa16-Jan-06 1:13
Guffa16-Jan-06 1:13 
But the exception object is created anyway. The only thing that you accomplish by not declaring it in the catch statement, is that you don't get access to it.

Also, there is another difference when you don't declare the Exception object. It decides what kind of exceptions is caught. If you dont specify an exception, it will catch any kind of exception, even system exceptions. If you specify an Exception object, it will catch exceptions that create objects that inherit the Exception base class. If you declare a specific exception type, like ArgumentException, it will only catch exceptions that create that specific object.

You declare several Catch blocks that will catch different kinds of exceptions:

Try<br />
...<br />
Catch ex as ArgumentException<br />
... handles specific exception<br />
Catch ex as Exception<br />
... handles all framework exceptions<br />
Catch<br />
... handles all system exceptions<br />
End Try


---
b { font-weight: normal; }

GeneralRe: Get Error message in Catch part Pin
Vipul Mehta16-Jan-06 1:22
Vipul Mehta16-Jan-06 1:22 
AnswerRe: Get Error message in Catch part Pin
Guffa16-Jan-06 2:48
Guffa16-Jan-06 2:48 
GeneralRe: Get Error message in Catch part Pin
Robert Rohde16-Jan-06 1:16
Robert Rohde16-Jan-06 1:16 
GeneralRe: Get Error message in Catch part Pin
Colin Angus Mackay17-Jan-06 2:25
Colin Angus Mackay17-Jan-06 2:25 
QuestionPorting DLL from VB6 to .NET platform. Pin
Kedar Potdar15-Jan-06 23:18
Kedar Potdar15-Jan-06 23:18 
QuestionSystem.Web.Mail.SmtpMail.Send() Pin
User 58385215-Jan-06 19:14
User 58385215-Jan-06 19:14 
AnswerRe: System.Web.Mail.SmtpMail.Send() Pin
tarasn15-Jan-06 21:28
tarasn15-Jan-06 21:28 
AnswerRe: System.Web.Mail.SmtpMail.Send() Pin
Guffa15-Jan-06 21:33
Guffa15-Jan-06 21:33 
GeneralRe: System.Web.Mail.SmtpMail.Send() Pin
User 58385215-Jan-06 21:45
User 58385215-Jan-06 21:45 
QuestionRepacing DB with XML files? Pin
wmostafaw15-Jan-06 8:26
wmostafaw15-Jan-06 8:26 
GeneralRe: Repacing DB with XML files? Pin
silkkeng15-Jan-06 11:15
silkkeng15-Jan-06 11:15 
AnswerRe: Repacing DB with XML files? Pin
Mike Burroughs15-Jan-06 17:29
Mike Burroughs15-Jan-06 17:29 
QuestionAssembly Pin
Amit R15-Jan-06 5:35
Amit R15-Jan-06 5:35 
AnswerRe: Assembly Pin
Mike Burroughs15-Jan-06 17:37
Mike Burroughs15-Jan-06 17:37 
QuestionAnyone else having Errors with VS.NET 2005 Express Editions? Pin
M@dHatter14-Jan-06 17:57
M@dHatter14-Jan-06 17:57 
QuestionShared Method Pin
GaneshParam14-Jan-06 1:03
GaneshParam14-Jan-06 1:03 
AnswerRe: Shared Method Pin
Guffa14-Jan-06 9:06
Guffa14-Jan-06 9:06 

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.