In WCF Ria Services, there is an exception type called DomainException() that can be used to pass Exceptions back across the wire to the client where it can be retrieved in Operation.Error.
Is there a similiar Exception class for DevForce?
For example:
public static class MailService
{
[AllowRpc]
public static object GetNewMail(IPrincipal pPrincipal, EntityManager pPm, params Object[] pArgs )
{
//There is a problem retrieving new mail, so return an exception to the client.
return "Got Mail";
}
}