Module: Mongrep::CoreExt::Mongo::Error::OperationFailure
- Defined in:
- lib/mongrep/core_ext/mongo/error/operation_failure.rb
Overview
Core extensions to Mongo::Error::OperationFailure
Instance Method Summary collapse
Instance Method Details
#duplicate_key_error? ⇒ Boolean
12 13 14 |
# File 'lib/mongrep/core_ext/mongo/error/operation_failure.rb', line 12 def duplicate_key_error? .start_with?('E11000') end |