class_docstr: Raised if a template does not exist.
  
  .. versionchanged:: 2.11
      If the given name is :class:`Undefined` and no message was
      provided, an :exc:`UndefinedError` is raised.
class_docstr_tok: ["Raised","if","a","template","does","not","exist",".","..","versionchanged",":",":","2.11","If","the","given","name","is",":","class",":","`","Undefined","`","and","no","message","was","provided",",","an",":","exc",":","`","UndefinedError","`","is","raised","."]
code: def __str__(self):
      return self.message
  
imports: from ._compat import imap
  from ._compat import implements_to_string
  from ._compat import PY2
  from ._compat import text_type
label_desc: Use image node_id 2 for calling the TemplateNotFound obj's underlying member method code with example usage: obj.__str__() and returns: self