Fix exception handing.:

This commit is contained in:
Paulo Gustavo Veiga 2012-08-26 17:02:24 -03:00
parent c4f3feb92e
commit 183f472f52
2 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,34 @@
<map name="5327">
<topic central="true" text="Guia Ezeiza" shape="rounded rectagle" brColor="#1b2863">
<topic position="237,-50" text="Directorio" bgColor="#cfe8d4">
<icon id="chart_organisation"/>
<topic order="0" text="Empresas">
<topic order="0" text="Rubro"/>
<topic order="1" text="Nombre"/>
</topic>
<topic order="1" text="Personas">
<topic order="0" text="Presidentes"/>
<topic order="1" text="Ventas"/>
<topic order="2" text="Otros"/>
</topic>
</topic>
<topic position="152,100" text="Social" bgColor="#cfe8d4">
<icon id="bulb_light_on"/>
<topic order="0" text="Red de contactos (linkedin)"/>
<topic order="1" text="Preguntas y respuestas"/>
<topic order="2" text="Negocios"/>
<topic order="3" text="Compartir intereses"/>
</topic>
<topic position="-168,100" text="Noticias" bgColor="#cfe8d4">
<icon id="money_coins"/>
<topic order="0" text="Subscripcion"/>
<topic order="1" text="Municipales"/>
<topic order="2" text="De interes general"/>
</topic>
<topic position="-162,-100" text="Eventos" bgColor="#cfe8d4">
<icon id="thumb_thumb_up"/>
<topic order="0" text="De la comunidad"/>
<topic order="1" text="Municipales"/>
</topic>
</topic>
</map>

View File

@ -63,5 +63,10 @@ public class BaseController {
return new RestErrors(ex.getErrors(), messageSource);
}
@ExceptionHandler(com.wisemapping.exceptions.AccessDeniedSecurityException.class)
@ResponseStatus(HttpStatus.BAD_REQUEST)
public RestErrors handleSecurityErrors(@NotNull ValidationException ex) {
return new RestErrors(ex.getErrors(), messageSource);
}
}