original_string: private function isResumableError(RuntimeException $exception)
      {
          if ($exception instanceof ConnectionException) {
              return true;
          }
  
          if ( ! $exception instanceof ServerException) {
              return false;
          }
  
          if (in_array($exception->getCode(), [self::$errorCodeCappedPositionLost, self::$errorCodeCursorKilled, self::$errorCodeInterrupted])) {
              return false;
          }
  
          return true;
      }
code: private function isResumableError(RuntimeException $exception)
      {
          if ($exception instanceof ConnectionException) {
              return true;
          }
  
          if ( ! $exception instanceof ServerException) {
              return false;
          }
  
          if (in_array($exception->getCode(), [self::$errorCodeCappedPositionLost, self::$errorCodeCursorKilled, self::$errorCodeInterrupted])) {
              return false;
          }
  
          return true;
      }
code_tokens: private function isResumableError ( RuntimeException $ exception ) { if ( $ exception instanceof ConnectionException ) { return true ; } if ( ! $ exception instanceof ServerException ) { return false ; } if ( in_array ( $ exception -> getCode ( ) , [ self :: $ errorCodeCappedPositionLost , self :: $ errorCodeCursorKilled , self :: $ errorCodeInterrupted ] ) ) { return false ; } return true ; }
docstring: Determines if an exception is a resumable error.
  
  @see https://github.com/mongodb/specifications/blob/master/source/change-streams/change-streams.rst#resumable-error
  @param RuntimeException $exception
  @return boolean
docstring_tokens: Determines if an exception is a resumable error .