Answers for "flux pointer exception"

1

flux pointer exception

@Repository 
@Override
public Mono<JobClient> getJobById(Long id)  {
    if(jobStores.get(id) == null) throw new ClientNotfoundException();
    return Mono.just(jobStores.get(id)).onErrorResume(e -> Mono.error(new ClientNotfoundException("Correct ID is required"+e)));
}
Posted by: Guest on October-18-2020

Browse Popular Code Answers by Language