I am using spring boot restful API every time I try
if(userRepository.findByEmail != null) Throw new RuntimeException("This email already exists");
I don't get the message back I only get the error with an empty message in postman instead I get only inside spring boot command the message I passed in RuntimeException.