You can just throw a RuntimeException from your fill method (or whatever server side method that FDS is calling). That turns into a fault event on the client. If you are using FDS's LoginCommand interface, you can just have your login method return a Principal that does not support the roles defined by the security constraints you attach to your destination's configuration. This is a declarative approach when you simply need to ensure a user has a given role when performing an operation.
Jeff ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of benjidudu Sent: Wednesday, January 31, 2007 3:23 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to create a fault in FDS? I have a fill which is called with a parameter. The user login is passed and I check the login in the DAO. What I would like is to create a fault event to return to Flex if the login does not pass my checks. Is there a way to do this? Benjamin.