File size: 738 Bytes
b42034d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | import streamlit as st
def render_db_error():
st.error("🔌 Database Connection Error")
st.info("The database is currently unavailable. Please try again in a few minutes.")
st.info(
"**Error Context:** Could not fetch raw data from `PostreSQL` remote Database."
)
if st.button("Retry"):
st.rerun()
def render_http_error(e):
st.error("🛜 API HTTP error")
st.info("System encountered an error while fetching available documentation.")
st.info(f"**Error Context:** {e}")
if st.button("Retry"):
st.rerun()
def render_error():
st.error("❌ Unexpected Error While Reporting Data")
st.info("System encountered an unexpected error while fetching or processing data.")
|