class_docstr: Used to display a warning.
  
  Note that this should not be "raised", but passed to st.exception
  instead.
class_docstr_tok: ["Used","to","display","a","warning",".","Note","that","this","should","not","be","``","raised","''",",","but","passed","to","st.exception","instead","."]
code: def __init__(self, *args):
      super(StreamlitAPIWarning, self).__init__(*args)
      import inspect
      import traceback
  
      f = inspect.currentframe()
      self.tacked_on_stack = traceback.extract_stack(f)
  
imports: from streamlit import util
label_desc: Use image node_id 1 to create a new StreamlitAPIWarning object from inherited base classes: StreamlitAPIException, Warning with example: obj = StreamlitAPIWarning()