Click here to Skip to main content
15,905,875 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to set the value to exception object? Pin
babutkchn17-Dec-06 23:35
babutkchn17-Dec-06 23:35 
GeneralRe: how to set the value to exception object? Pin
Colin Angus Mackay17-Dec-06 23:40
Colin Angus Mackay17-Dec-06 23:40 
GeneralRe: how to set the value to exception object? Pin
babutkchn17-Dec-06 23:52
babutkchn17-Dec-06 23:52 
GeneralRe: how to set the value to exception object? Pin
Colin Angus Mackay18-Dec-06 0:24
Colin Angus Mackay18-Dec-06 0:24 
GeneralRe: how to set the value to exception object? Pin
babutkchn18-Dec-06 23:50
babutkchn18-Dec-06 23:50 
GeneralRe: how to set the value to exception object? Pin
Colin Angus Mackay19-Dec-06 6:39
Colin Angus Mackay19-Dec-06 6:39 
AnswerRe: how to set the value to exception object? Pin
Guffa17-Dec-06 23:45
Guffa17-Dec-06 23:45 
GeneralRe: how to set the value to exception object? Pin
babutkchn17-Dec-06 23:39
babutkchn17-Dec-06 23:39 
for example in the following code i've set the value to both source and message.but the application shows error for the MEssage property. I need the soution for this.i need to set the value as in the code. how to set that? Kindly tell me?



public class CustomExp : ApplicationException
{
public void cust(String msg)
{
this.Source = "test";
this.Message = "testing";
}
}

babu
GeneralRe: how to set the value to exception object? Pin
Colin Angus Mackay17-Dec-06 23:41
Colin Angus Mackay17-Dec-06 23:41 
AnswerRe: how to set the value to exception object? Pin
Guffa17-Dec-06 23:45
Guffa17-Dec-06 23:45 
Questionhow to set the value to Exception.Message or this.message properties? Pin
babutkchn17-Dec-06 23:01
babutkchn17-Dec-06 23:01 
AnswerRe: how to set the value to Exception.Message or this.message properties? Pin
Martin#17-Dec-06 23:17
Martin#17-Dec-06 23:17 
GeneralRe: how to set the value to Exception.Message or this.message properties? Pin
Colin Angus Mackay17-Dec-06 23:37
Colin Angus Mackay17-Dec-06 23:37 
GeneralRe: how to set the value to Exception.Message or this.message properties? Pin
Martin#17-Dec-06 23:49
Martin#17-Dec-06 23:49 
AnswerRe: how to set the value to Exception.Message or this.message properties? Pin
Guffa17-Dec-06 23:22
Guffa17-Dec-06 23:22 
GeneralRe: how to set the value to Exception.Message or this.message properties? Pin
Martin#17-Dec-06 23:32
Martin#17-Dec-06 23:32 
GeneralRe: how to set the value to Exception.Message or this.message properties? Pin
Guffa18-Dec-06 0:47
Guffa18-Dec-06 0:47 
GeneralRe: how to set the value to Exception.Message or this.message properties? Pin
Martin#18-Dec-06 0:55
Martin#18-Dec-06 0:55 
GeneralRe: how to set the value to Exception.Message or this.message properties? Pin
babutkchn17-Dec-06 23:41
babutkchn17-Dec-06 23:41 
AnswerRe: how to set the value to Exception.Message or this.message properties? Pin
Guffa17-Dec-06 23:44
Guffa17-Dec-06 23:44 
AnswerRe: how to set the value to Exception.Message or this.message properties? Pin
Pete O'Hanlon17-Dec-06 23:32
mvePete O'Hanlon17-Dec-06 23:32 
AnswerRe: how to set the value to Exception.Message or this.message properties? Pin
Colin Angus Mackay17-Dec-06 23:38
Colin Angus Mackay17-Dec-06 23:38 
GeneralRe: how to set the value to Exception.Message or this.message properties? Pin
Pete O'Hanlon17-Dec-06 23:54
mvePete O'Hanlon17-Dec-06 23:54 
GeneralRe: how to set the value to Exception.Message or this.message properties? Pin
Colin Angus Mackay18-Dec-06 0:28
Colin Angus Mackay18-Dec-06 0:28 
GeneralRe: how to set the value to Exception.Message or this.message properties? Pin
Pete O'Hanlon18-Dec-06 0:31
mvePete O'Hanlon18-Dec-06 0:31 

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.