class_docstr: Exceptions are documented in the same way as classes.
  
  The __init__ method may be documented in either the class level
  docstring, or as a docstring on the __init__ method itself.
  
  Either form is acceptable, but the two should not be mixed. Choose one
  convention to document the __init__ method and be consistent with it.
  
  Note:
      Do not include the `self` parameter in the ``Args`` section.
  
  Args:
      msg (str): Human readable string describing the exception.
      code (:obj:`int`, optional): Error code.
  
  Attributes:
      msg (str): Human readable string describing the exception.
      code (int): Exception error code.
class_docstr_tok: ["Exceptions","are","documented","in","the","same","way","as","classes",".","The","__init__","method","may","be","documented","in","either","the","class","level","docstring",",","or","as","a","docstring","on","the","__init__","method","itself",".","Either","form","is","acceptable",",","but","the","two","should","not","be","mixed",".","Choose","one","convention","to","document","the","__init__","method","and","be","consistent","with","it",".","Note",":","Do","not","include","the","`","self","`","parameter","in","the","``","Args","``","section",".","Args",":","msg","(","str",")",":","Human","readable","string","describing","the","exception",".","code","(",":","obj",":","`","int","`",",","optional",")",":","Error","code",".","Attributes",":","msg","(","str",")",":","Human","readable","string","describing","the","exception",".","code","(","int",")",":","Exception","error","code","."]
code: def __init__(self, msg, code):
      self.msg = msg
      self.code = code
  
file_path: sphinx/doc/usage/extensions/example_google.py
label_desc: Use image node_id 1 to create a new ExampleError object from inherited base classes: Exception with example: obj = ExampleError(msg, code)