src/main/java/uk/gov/hmcts/reform/finrem/caseorchestration/controllers/BaseController.java
/**
     * Throws exception if callback request is missing case data.
     */
Throws exception if callback request is missing case data.
Throws exception if callback request is missing case data .
default void validateCaseData(CallbackRequest callbackRequest) {
        if (callbackRequest == null || callbackRequest.getCaseDetails() == null
            || callbackRequest.getCaseDetails().getData() == null) {
            throw new InvalidCaseDataException(BAD_REQUEST.value(), "Missing data from callbackRequest.");
        }
    }
default void validateCaseData ( CallbackRequest callbackRequest ) { if ( callbackRequest == null || callbackRequest . getCaseDetails ( ) == null || callbackRequest . getCaseDetails ( ) . getData ( ) == null ) { throw new InvalidCaseDataException ( BAD_REQUEST . value ( ) , "Missing data from callbackRequest." ) ; } }
Throws exception if callback request is missing case data.
Throws exception if callback request is missing case data .