parameters: (self)
docstring: Return if an exception occurred.
docstring_summary: Return if an exception occurred.
docstring_tokens: Return if an exception occurred .
function: def check_occurred(self):
          """
          Return if an exception occurred.
          """
          err_occurred = cgutils.is_not_null(self.builder,
                                             self.pyapi.err_occurred())
  
          with cgutils.if_unlikely(self.builder, err_occurred):
              self.return_exception_raised()
function_tokens: def check_occurred ( self ) : err_occurred = cgutils . is_not_null ( self . builder , self . pyapi . err_occurred ( ) ) with cgutils . if_unlikely ( self . builder , err_occurred ) : self . return_exception_raised ( )