Fix freemind import bug with relationships.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.wisemapping.rest;
|
||||
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.web.bind.annotation.ExceptionHandler;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
@@ -11,7 +12,7 @@ public class BaseController {
|
||||
@ExceptionHandler(IllegalArgumentException.class)
|
||||
@ResponseStatus(HttpStatus.BAD_REQUEST)
|
||||
@ResponseBody
|
||||
public String handleClientErrors(Exception ex) {
|
||||
public String handleClientErrors(@NotNull Exception ex) {
|
||||
ex.printStackTrace();
|
||||
return ex.getMessage();
|
||||
}
|
||||
@@ -19,7 +20,7 @@ public class BaseController {
|
||||
@ExceptionHandler(Exception.class)
|
||||
@ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR)
|
||||
@ResponseBody
|
||||
public String handleServerErrors(Exception ex) {
|
||||
public String handleServerErrors(@NotNull Exception ex) {
|
||||
ex.printStackTrace();
|
||||
// LOGGER.error(ex.getMessage(), ex);
|
||||
return ex.getMessage();
|
||||
|
Reference in New Issue
Block a user