}
/**
- * Logs a warning if an invalid RIC instance key is used.
+ * Logs the error and generates a response when a REST controller method takes
+ * an UnknownInstanceException, an invalid RIC instance key was used.
*
* @param ex
* The exception
ex.toString());
return ResponseEntity.badRequest().body(getShortExceptionMessage(ex));
}
-
+
/**
- * Logs a warning if a StatsManagerException is thrown.
+ * Logs the error and generates a response when a REST controller method takes
+ * an StatsManagerException.
*
* @param ex
* The exception
*/
@ExceptionHandler({ StatsManagerException.class })
public final ResponseEntity<String> handleStatsManagerException(Exception ex, WebRequest request) {
- log.warn("handleStatsManagerException: request {}, exception {}", request.getDescription(false),
- ex.toString());
+ log.warn("handleStatsManagerException: request {}, exception {}", request.getDescription(false), ex.toString());
return ResponseEntity.badRequest().body(getShortExceptionMessage(ex));
}