Commit #2
This commit is contained in:
@@ -10,6 +10,6 @@ import org.springframework.web.bind.annotation.ExceptionHandler;
|
||||
public class GlobalExceptionHandler {
|
||||
@ExceptionHandler(CodeNotFoundException.class)
|
||||
public ResponseEntity<Void> handleCodeNotFoundException(CodeNotFoundException e) {
|
||||
return new ResponseEntity<Void>(HttpStatus.UNAUTHORIZED);
|
||||
return new ResponseEntity<>(HttpStatus.UNAUTHORIZED);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user