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
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
to FxWorks
I handled it by implementing ISerializeNotifiable.

Thanx a lot anyway :)

Alexutz

unread,
Jul 5, 2011, 5:50:47 AM7/5/11
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 -
Reply all
Reply to author
Forward
0 new messages