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

.NET (Core and Framework)

 
GeneralRe: Throw it like you mean it... Pin
Adriaan Davel30-Aug-09 19:15
Adriaan Davel30-Aug-09 19:15 
GeneralRe: Throw it like you mean it... PinPopular
Gideon Engelberth21-Aug-09 3:53
Gideon Engelberth21-Aug-09 3:53 
GeneralRe: Throw it like you mean it... Pin
Adriaan Davel25-Aug-09 19:19
Adriaan Davel25-Aug-09 19:19 
GeneralRe: Throw it like you mean it... Pin
supercat925-Aug-09 5:25
supercat925-Aug-09 5:25 
GeneralRe: Throw it like you mean it... Pin
Adriaan Davel25-Aug-09 19:40
Adriaan Davel25-Aug-09 19:40 
GeneralRe: Throw it like you mean it... Pin
supercat926-Aug-09 5:40
supercat926-Aug-09 5:40 
GeneralRe: Throw it like you mean it... Pin
Adriaan Davel30-Aug-09 19:33
Adriaan Davel30-Aug-09 19:33 
GeneralRe: Throw it like you mean it... Pin
supercat931-Aug-09 5:11
supercat931-Aug-09 5:11 
Adriaan Davel wrote:
but for the .Net Framework there should be something like if (DEBUG) throw new ExceptionWithDetail(); else throw new Exception();


For best results, I think the server would have to know about the exception detail, since the server is responsible for generating the message. On the other hand, it might be possible to put a wrapper around the SQL object that would log its state (command string, parameters, etc.) immediately before the query, catch any exceptions, and wrap the exceptions in a package including the pre-query state. That wouldn't be as helpful as having the server adding the detail (since it wouldn't necessarily say which part of a multi-part query failed) but it might help somewhat.
GeneralRe: Throw it like you mean it... Pin
Adriaan Davel31-Aug-09 19:30
Adriaan Davel31-Aug-09 19:30 
GeneralRe: Throw it like you mean it... Pin
Adriaan Davel31-Aug-09 0:39
Adriaan Davel31-Aug-09 0:39 
QuestionRecognizing an object instance after regenerating dinamicly the assembly Pin
Mehdi_S21-Aug-09 0:06
Mehdi_S21-Aug-09 0:06 
QuestionKeeping Command Console Open After Running Process Pin
Tristan Rhodes20-Aug-09 23:45
Tristan Rhodes20-Aug-09 23:45 
AnswerRe: Keeping Command Console Open After Running Process Pin
Alan N21-Aug-09 7:38
Alan N21-Aug-09 7:38 
AnswerRe: Keeping Command Console Open After Running Process Pin
qmartens22-Aug-09 19:46
qmartens22-Aug-09 19:46 
GeneralRe: Keeping Command Console Open After Running Process Pin
Alan N23-Aug-09 7:08
Alan N23-Aug-09 7:08 
GeneralRe: Keeping Command Console Open After Running Process Pin
Tristan Rhodes23-Aug-09 22:59
Tristan Rhodes23-Aug-09 22:59 
Questionautopositioning in visual studio 2008 Pin
myinstincts20-Aug-09 21:28
myinstincts20-Aug-09 21:28 
AnswerRe: autopositioning in visual studio 2008 Pin
Eddy Vluggen20-Aug-09 22:34
professionalEddy Vluggen20-Aug-09 22:34 
Questionpartition in windows form Pin
myinstincts20-Aug-09 19:20
myinstincts20-Aug-09 19:20 
AnswerRe: partition in windows form Pin
Suresh Suthar20-Aug-09 20:31
professionalSuresh Suthar20-Aug-09 20:31 
GeneralRe: partition in windows form Pin
myinstincts20-Aug-09 21:48
myinstincts20-Aug-09 21:48 
GeneralRe: partition in windows form Pin
Hristo-Bojilov20-Aug-09 23:05
Hristo-Bojilov20-Aug-09 23:05 
QuestionDebugging Weirdness [SOLVED] Pin
#realJSOP20-Aug-09 9:03
mve#realJSOP20-Aug-09 9:03 
AnswerRe: Debugging Weirdness Pin
Dave Kreskowiak20-Aug-09 9:51
mveDave Kreskowiak20-Aug-09 9:51 
GeneralRe: Debugging Weirdness Pin
#realJSOP20-Aug-09 12:09
mve#realJSOP20-Aug-09 12:09 

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.