Hello there đź‘‹

Thanks for stopping by! We use cookies to help us understand how you interact with our website.

By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.

Display an exception.

Function signature[source]

st.exception(exception)

Parameters

exception (Exception)

The exception to display.

Example

import streamlit as st

e = RuntimeError("This is an exception of type RuntimeError")
st.exception(e)
forum

Still have questions?

Our forums are full of helpful information and Streamlit experts.