As mentioned in the title, how to stop streamlit app from running when it detects an error,
something like st.stop that does stop the app when the entered data does not fit the requirements.
@amineHY: If you want to halt execution without visually showing the exception, an undocumented feature is that you can also throw a StopException (more details) which will also silently halt the script.