class_docstr: This exception is raised with a card is not present in the datastore.
class_docstr_tok: ["This","exception","is","raised","with","a","card","is","not","present","in","the","datastore","."]
code: def __init__(
      self, pathspec, card_type=None, card_hash=None, card_id=None
  ):
      main_message = "Card not found for pathspec %s" % pathspec
      if card_id is not None:
          main_message = (
              "Card with id '%s' not found for pathspec %s"
              % (
                  card_id,
                  pathspec,
              )
          )
  
      if card_type is not None:
          main_message = (
              "Card with type '%s' not found for pathspec %s"
              % (
                  card_type,
                  pathspec,
              )
          )
  
      if card_hash is not None:
          main_message = (
              "Card with hash '%s' not found for pathspec %s. When using `--hash` always ensure you have full hash or first five characters of the hash."
              % (card_hash, pathspec)
          )
  
      super(CardNotPresentException, self).__init__(main_message)
  
imports: from metaflow.exception import MetaflowException
  import traceback
  import re
label_desc: Use image node_id 1 to create a new CardNotPresentException object from inherited base classes: MetaflowException with example: obj = CardNotPresentException(pathspec, card_type, card_hash, card_id)