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.