i want understand how can handle rest service specific exceptions in mvc3. pointers? basically, have controller , there might multiple try catch blocks , throw statements exceptions. i'm little confused after reading posts. edit:
public actionresult index() { iconsumerrequest conreq = osession.request(); conreq = conreq.get(); conreq = conreq.forurl(session["serviceendpoint"].tostring()); try { conreq = conreq.signwithtoken(); } catch (exception ex) { throw ex; } return view(); } on throw exception, need able redirect custom error page. read through post too: custom error pages on asp.net mvc3 how handle different error codes 302 or else if application not running on iis.
bellow nice link custom exp handling
Comments
Post a Comment