Back to list
Views:   3.2K
Replies:  0

Web service errors and the Repository pattern

I see in Design Pattern Framework, errors that are returned from the service layer via the response object are swallowed in the repository object. As an example, try turning off [Authorize] in the AdminController.  The web service fails to authenticate the user and the list of customers (calling Customers method) is null.

I would have thought the best (if not only) place to handle the display of these errors is to use the ResultSummary method in the view.  The "result" to be added could be the error message returned from the response object.  However, the controller needs to have access to at least this string, and the response is not passed back as far as the controller.  How have other members handled this?
Mark Neilson Massey University, Sep 15, 2010
Stay Inspired!
Join other developers and designers who have already signed up for our mailing list.
Terms     Privacy     Cookies       Do Not Sell       Licensing      
Made with    in Austin, Texas.  - vsn 44.0.0
© Data & Object Factory, LLC.