How do I throw a custom exception in a C# web service so that flex reads the error on fault?
I tried simply throwing an exception like this
throw new Exception("invalid key");
But FaultEvent couldn't decode the message in flex.
Edit: What I really want to do is for flex to differentiate exceptions in the web service, for example to know if the exception is a database connection error or a invalid key in header error