class_docstr: Retry strategy that retries if an exception verifies a predicate.
class_docstr_tok: ["Retry","strategy","that","retries","if","an","exception","verifies","a","predicate","."]
code: def __init__(
      self, predicate: typing.Callable[[BaseException], bool]
  ) -> None:
      self.predicate = predicate
  
imports: import abc
  import re
  import typing
label_desc: Use image node_id 1 to create a new retry_if_exception object from inherited base classes: retry_base with example: obj = retry_if_exception(predicate)