adding FetchbillByBillId

This commit is contained in:
himanshu
2025-10-27 10:48:19 +05:30
parent 33d80218b4
commit cde8b79d53
24 changed files with 568 additions and 41 deletions
@@ -1,10 +1,16 @@
package com.billpaymentservice.bbps.exception;
import org.springframework.web.bind.annotation.RestControllerAdvice;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import com.billpaymentservice.bbps.dto.GeneralResp;
@RestControllerAdvice
@ControllerAdvice
public class GlobalExceptionHandler {
@ExceptionHandler(CustomException.class)
public ResponseEntity<GeneralResp> handleCustomException(CustomException ex) {
return new ResponseEntity<>(ex.getGeneralResp(), HttpStatus.INTERNAL_SERVER_ERROR);
}
}