New Posts New Posts RSS Feed: Returning exception from custom data converter and showing the exception message in messagebox on UI.
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Returning exception from custom data converter and showing the exception message in messagebox on UI.

 Post Reply Post Reply
Author
mehajain View Drop Down
Newbie
Newbie


Joined: 31-Dec-2007
Posts: 1
Post Options Post Options   Quote mehajain Quote  Post ReplyReply Direct Link To This Post Topic: Returning exception from custom data converter and showing the exception message in messagebox on UI.
    Posted: 31-Dec-2007 at 3:23am

Hi All

I have created a custom data converter. What I need to do is to compare the object value to a particular format and show a message to user in case the value is not in correct format.

I tried by writing following code in ValidateCore() function
throw new ConverterException("Input string not in correct format");
But it returns error -" 'IdeaBlade.UI.ConverterException' occurred but was not handled in user code".

How can I do this?

Back to Top
IdeaBlade View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 30-May-2007
Location: United States
Posts: 353
Post Options Post Options   Quote IdeaBlade Quote  Post ReplyReply Direct Link To This Post Posted: 02-Jan-2008 at 8:22pm
Try looking at this example which displays an error if the FirstName of the Employee does not begin with "Al".
 
Here is the code:
 
 
Here is the documentation:
 
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down