Throw exception depending on a criteria during serialization
0 views
Skip to first unread message
Ranhiru
unread,
Jul 5, 2011, 5:01:24 AM7/5/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to FxWorks
I have a scenario, where I have a set of objects inside objects which
have FlexxB annotations.
Serialize method perfectly serializes the objects.
However during the serialization process, I want to throw an exception
(and stop the serialization process) if a certain criteria is not met
in one of the objects being serialized.
How do I get about doing that?
Thanks a lot in advance :)
Ranhiru
unread,
Jul 5, 2011, 5:37:25 AM7/5/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to FxWorks
I handled it by implementing ISerializeNotifiable.
Thanx a lot anyway :)
Alexutz
unread,
Jul 5, 2011, 5:50:47 AM7/5/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to FxWorks
Glad to hear you sorted it out so fast. I agree that using
ISerializeNotifiable is the best solution in this situation.
Alex
> > Thanks a lot in advance :)- Hide quoted text -
>
> - Show quoted text -