@_with_element
def exception(self, element, exception):
    "Display an exception.\n\n        Parameters\n        ----------\n        exception : Exception\n            The exception to display.\n\n        Example\n        -------\n        >>> e = RuntimeError('This is an exception of type RuntimeError')\n        >>> st.exception(e)\n\n        "
    import streamlit.elements.exception_proto as exception_proto
    exception_proto.marshall(element.exception, exception)
Display an exception.

Parameters
----------
exception : Exception
    The exception to display.

Example
-------
>>> e = RuntimeError('This is an exception of type RuntimeError')
>>> st.exception(e)
@_with_element
def exception(self, element, exception):
    "Display an exception.\n\n        Parameters\n        ----------\n        exception : Exception\n            The exception to display.\n\n        Example\n        -------\n        >>> e = RuntimeError('This is an exception of type RuntimeError')\n        >>> st.exception(e)\n\n        "
    import streamlit.elements.exception_proto as exception_proto
    exception_proto.marshall(element.exception, exception)