diff Agendas/trunk/src/Agendas.Web/Views/Shared/Error.cshtml @ 82:c8897b1c6f49

Manejo de excepciones en sitio web
author nelopauselli
date Tue, 24 May 2011 19:31:10 -0300
parents 08dbe42fdde1
children
line wrap: on
line diff
--- a/Agendas/trunk/src/Agendas.Web/Views/Shared/Error.cshtml	Tue May 24 19:21:20 2011 -0300
+++ b/Agendas/trunk/src/Agendas.Web/Views/Shared/Error.cshtml	Tue May 24 19:31:10 2011 -0300
@@ -1,6 +1,13 @@
 @model System.Web.Mvc.HandleErrorInfo
+@using AltNetHispano.Agendas.Domain.Exceptions;
+
 <h2>Error</h2>
 
-<h2>
-    Sorry, an error occurred while processing your request.
-</h2>
+@if (Model.Exception is EventoNotFoundException)
+ {
+	<p>No se puede encontrar el evento al que está intentado acceder</p>
+ }
+ else
+ {
+    <p>Sorry, an error occurred while processing your request.</p>
+ }