I am using an observer on event
sales_order_save_before to check for a condition and based on that condition I was to stop the save functionality.
Currently I am using it on
Submit Comment in Sales Order view (Admin Panel)
execute function is called and condition is met. but it doesn't stop the save functionality when I raise error using
throw new \ErrorException()
Is there any other way to completely stop the save order process?