stackroute / ibm-wave3-ontrack-hackathon

Other
0 stars 0 forks source link

use exceptions properly in controller #89

Open cprakashb opened 5 years ago

cprakashb commented 5 years ago
@GetMapping("registration")
public ResponseEntity<?> getAllUser()
{
    try
    {
        responseEntity=new ResponseEntity(registrationService.getAllUser(),HttpStatus.OK);
    }
    catch (Exception ex)
    {

    }

// responseEntity = new ResponseEntity(registrationService.getAllUser(),HttpStatus.OK); return responseEntity; }