class_docstr: This class helps visualize Error's on the `MetaflowCard`. It can help catch and print stack traces to errors that happen in `@step` code.
  
  ### Parameters
  - `exception` (Exception) : The `Exception` to visualize. This value will be `repr`'d before passed down to `MetaflowCard`
  - `title` (str) : The title that will appear over the visualized  `Exception`.
  
  ### Usage
  ```python
  @card
  @step
  def my_step(self):
      from metaflow.cards import Error
      from metaflow import current
      try:
          ...
          ...
      except Exception as e:
          current.card.append(
              Error(e,"Something misbehaved")
          )
      ...
  ```
class_docstr_tok: ["This","class","helps","visualize","Error","'s","on","the","`","MetaflowCard","`",".","It","can","help","catch","and","print","stack","traces","to","errors","that","happen","in","`","@","step","`","code",".","#","#","#","Parameters","-","`","exception","`","(","Exception",")",":","The","`","Exception","`","to","visualize",".","This","value","will","be","`","repr","`","'d","before","passed","down","to","`","MetaflowCard","`","-","`","title","`","(","str",")",":","The","title","that","will","appear","over","the","visualized","`","Exception","`",".","#","#","#","Usage","``","`","python","@","card","@","step","def","my_step","(","self",")",":","from","metaflow.cards","import","Error","from","metaflow","import","current","try",":","...","...","except","Exception","as","e",":","current.card.append","(","Error","(","e",",","''","Something","misbehaved","''",")",")","...","``","`"]
code: def __init__(self, exception, title=None):
      self._exception = exception
      self._title = title
  
imports: from typing import Any, List, Optional, Union
  from .basic import LogComponent, ErrorComponent, ArtifactsComponent, TableComponent, ImageComponent, SectionComponent, MarkdownComponent
  from .card import MetaflowCardComponent
  from .convert_to_native_type import TaskToDict, _full_classname
  from .renderer_tools import render_safely
  import uuid
label_desc: Use image node_id 1 to create a new Error object from inherited base classes: UserComponent with example: obj = Error(exception, title)