Display an exception.
Function signature

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)

Was this page helpful?

editSuggest edits
forum

Still have questions?

Our forums are full of helpful information and Streamlit experts.