Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic "shouldn't get here"? (Read 2306 times)
Rennie
Full Member
***
Offline


I Love MindFusion!

Posts: 108
Location: Copenhagen, Denmark
Joined: Jul 17th, 2012
"shouldn't get here"?
Jan 11th, 2013 at 5:45am
Print Post  
Now I have another suggestion, a very tiny one this time.

When I changed one of my custom nodes then it couldn't deserialize the previously saved diagram, and an exception was thrown - that's understandable.

But the Message part of the Exception object is a rather laconic "shouldn't get here". And my program catches all exceptions and normally displays the Message part of the exception as part of the message that I display to the end user.

Could you maybe replace "shouldn't get here" with a somewhat more explanatory text? OK if it is nerd-speak, just so it seems to indicate something more meaningful.

Thanks.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: "shouldn't get here"?
Reply #1 - Jan 11th, 2013 at 5:03pm
Print Post  
I suppose this pre-dates the support for custom diagram item types we added in version 5 of the control and you wouldn't really see it back then. For the time being you can throw your own exception from the nodes' LoadFrom method if you want to show an exception to the user instead of implementing some versioning support  Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint