Commit 89d2dd28 authored by benjaminParisel's avatar benjaminParisel Committed by jeromecambon

fix(licenseError): Add clear message when license exception was catch (#2733)

Covers [UID-83](https://bonitasoft.atlassian.net/browse/UID-83)
parent cb4882d6
/**
* Copyright (C) 2015 Bonitasoft S.A.
* Bonitasoft, 32 rue Gustave Eiffel - 38000 Grenoble
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2.0 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.bonitasoft.web.designer.controller;
public interface BonitaExceptionHandler {
}
......@@ -23,6 +23,8 @@ import org.bonitasoft.web.designer.repository.exception.NotFoundException;
import org.bonitasoft.web.designer.repository.exception.RepositoryException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
......@@ -36,8 +38,9 @@ import java.io.IOException;
/**
* Definition of the exception handlers
*/
@Order(Ordered.LOWEST_PRECEDENCE)
@ControllerAdvice
public class ResourceControllerAdvice {
public class ResourceControllerAdvice implements BonitaExceptionHandler {
private static final Logger logger = LoggerFactory.getLogger(ResourceControllerAdvice.class);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment