Prevent Modal from closing on a specific event

I have an Observer Listener design pattern where on updating event for a Model I trigger a specific logic and I want this logic to halt/prevent the Resource's editing modal from closing if it fails, I tried throwing a new Halt exception but it still closes the modal, any ideas?
Was this page helpful?