B
bitshift
In many asp.net pages I want to trap for errors, but I often really dont do
anything with the exception object itself, so I get annorying warning
messages when it comes time to build. So i started changing how i catch
exceptions like so:
try {
....code here
}
catch(Exception) {
//do something here
}
Notice im not creating an explicit exception object, as is the usual cas
like so:
catch (Exception ex) ...
Is it bad (performance wise) to NOT create an explicit exception object like
im doing ?
anything with the exception object itself, so I get annorying warning
messages when it comes time to build. So i started changing how i catch
exceptions like so:
try {
....code here
}
catch(Exception) {
//do something here
}
Notice im not creating an explicit exception object, as is the usual cas
like so:
catch (Exception ex) ...
Is it bad (performance wise) to NOT create an explicit exception object like
im doing ?