@_with_element
def error(self, element, body):
    "Display error message.\n\n        Parameters\n        ----------\n        body : str\n            The error text to display.\n\n        Example\n        -------\n        >>> st.error('This is an error')\n\n        "
    element.alert.body = _clean_text(body)
    element.alert.format = Alert_pb2.Alert.ERROR
Display error message.

Parameters
----------
body : str
    The error text to display.

Example
-------
>>> st.error('This is an error')
@_with_element
def error(self, element, body):
    "Display error message.\n\n        Parameters\n        ----------\n        body : str\n            The error text to display.\n\n        Example\n        -------\n        >>> st.error('This is an error')\n\n        "
    element.alert.body = _clean_text(body)
    element.alert.format = Alert_pb2.Alert.ERROR