| .. | .. |
|---|
| 12 | 12 | |
|---|
| 13 | 13 | import net.curisit.securis.services.exception.SeCurisServiceException; |
|---|
| 14 | 14 | |
|---|
| 15 | | -import org.apache.logging.log4j.Logger; |
|---|
| 16 | 15 | import org.apache.logging.log4j.LogManager; |
|---|
| 16 | +import org.apache.logging.log4j.Logger; |
|---|
| 17 | 17 | |
|---|
| 18 | 18 | @Provider |
|---|
| 19 | 19 | public class DefaultExceptionHandler implements ExceptionMapper<Exception> { |
|---|
| .. | .. |
|---|
| 49 | 49 | LOG.error("Request url: " + request.getRequestURL(), e); |
|---|
| 50 | 50 | return Response.serverError().header(ERROR_MESSAGE_HEADER, "Unexpected error: " + e.toString()).type(MediaType.APPLICATION_JSON).build(); |
|---|
| 51 | 51 | } |
|---|
| 52 | | -} |
|---|
| 52 | +} |
|---|