New Posts New Posts RSS Feed: Server Exception Handling
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Server Exception Handling

 Post Reply Post Reply
Author
gregweb View Drop Down
DevForce MVP
DevForce MVP
Avatar

Joined: 10-Sep-2009
Location: Clearwater, Fl
Posts: 253
Post Options Post Options   Quote gregweb Quote  Post ReplyReply Direct Link To This Post Topic: Server Exception Handling
    Posted: 14-Jan-2011 at 8:41am
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";
        }

    }
 
Back to Top
gregweb View Drop Down
DevForce MVP
DevForce MVP
Avatar

Joined: 10-Sep-2009
Location: Clearwater, Fl
Posts: 253
Post Options Post Options   Quote gregweb Quote  Post ReplyReply Direct Link To This Post Posted: 14-Jan-2011 at 12:50pm
In testing this out some more, it appears that any unhandled exception during the RPC gets returned back to the Client as an InvokeServerMethodOperation.Error which is what I was looking for.
 
Greg
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down