class_docstr: An object used to inspect and set the result in a :ref:`hook wrapper
  <hookwrappers>`.
class_docstr_tok: ["An","object","used","to","inspect","and","set","the","result","in","a",":","ref",":","`","hook","wrapper","<","hookwrappers",">","`","."]
docstr: Force the result to fail with ``exception``.
  
  This overrides any previous result or exception.
  
  .. versionadded:: 1.1.0
docstr_tok: ["Force","the","result","to","fail","with","``","exception","``",".","This","overrides","any","previous","result","or","exception",".","..","versionadded",":",":","1.1.0"]
code: def force_exception(self, exception: BaseException) -> None:
      """Force the result to fail with ``exception``.
  
      This overrides any previous result or exception.
  
      .. versionadded:: 1.1.0
      """
      self._result = None
      self._exception = exception
  
imports: from __future__ import annotations
  from types import TracebackType
  from typing import Callable
  from typing import cast
  from typing import final
  from typing import Generator
  from typing import Generic
  from typing import NoReturn
  from typing import Optional
  from typing import Tuple
  from typing import Type
  from typing import TypeVar
label_desc: Use image node_id 6 for calling the Result obj's underlying member method code with example usage: obj.force_exception(exception) without return types