lib/mongo/error/operation_failure.rb
# Whether the error is caused by an attempted retryable write
# on a storage engine that does not support retryable writes.
#
# @return [ true | false ] Whether the error is caused by an attempted
# retryable write on a storage engine that does not support retryable writes.
#
# @since 2.10.0
Whether the error is caused by an attempted retryable write
on a storage engine that does not support retryable writes.
Whether the error is caused by an attempted retryable write on a storage engine that does not support retryable writes .
def unsupported_retryable_write?
        code == 20 && server_message&.start_with?("Transaction numbers") || false
      end
def unsupported_retryable_write? code == 20 && server_message &. start_with? ( "Transaction numbers" ) || false end
Whether the error is caused by an attempted retryable write
on a storage engine that does not support retryable writes.
Whether the error is caused by an attempted retryable write on a storage engine that does not support retryable writes .
# code 20 is IllegalOperation. # Note that the document is expected to be a BSON::Document, thus # either having string keys or providing indifferent access.
Whether the error is caused by an attempted retryable write on a storage engine that does not support retryable writes.
Whether the error is caused by an attempted retryable write on a storage engine that does not support retryable writes .
 true | false 
since
None