We are using SDL Web 8.5.
While publishing any item we are also pushing some content of the item in elastic search using si4t storage extension sometime there is an error between deployer and elastic search service we would like to abort publishing and shown to the user as failed in publishing queue if there is any error while pushing content to elastic search.
how we can handle this in our si4t extension jar file?