{"record":{"id":"6866b3ad181e4b9c","repo":"faker-ruby/faker","slug":"tax-order-is-not-a-valid-taxonomic-order","errorCode":null,"errorMessage":"#{tax_order} is not a valid taxonomic order","messagePattern":"#(.+?) is not a valid taxonomic order","errorType":"exception","errorClass":"ArgumentError","httpStatus":null,"severity":"error","filePath":"lib/faker/creature/bird.rb","lineNumber":148,"sourceCode":"        # Produces a random common name for a bird\n        #\n        # @param [String | Symbol | nil] tax_order Tax\n        # @return [String]\n        # @raises TypeError If `tax_order` cannot be converted into a Symbol\n        # @raises ArgumentError If `tax_order` is not a valid taxonomic order\n        #\n        # @example\n        #   Faker::Creature::Bird.common_name #=> 'wren'\n        #\n        # @faker.version next\n        def common_name(tax_order = nil)\n          map = translate('faker.creature.bird.order_common_map')\n          if tax_order.nil?\n            sample(map.values.flatten).downcase\n          else\n            raise TypeError, 'tax_order parameter must be symbolizable' \\\n              unless tax_order.respond_to?(:to_sym)\n            raise ArgumentError, \"#{tax_order} is not a valid taxonomic order\" \\\n                                 unless map.keys.include?(tax_order.to_sym)\n\n            the_order = translate('faker.creature.bird.order_common_map')[tax_order.to_sym]\n            sample(the_order).downcase\n          end\n        end\n\n        ##\n        # Produces a random and plausible common name for a bird\n        #\n        # @return [String]\n        #\n        # @example\n        #   Faker::Creature::Bird.plausible_common_name #=> 'Hellinger's Wren'\n        #\n        # @faker.version next\n        def plausible_common_name\n          parse('creature.bird.plausible_common_names').capitalize","sourceCodeStart":130,"sourceCodeEnd":166,"githubUrl":"https://github.com/faker-ruby/faker/blob/cca4184947e09fdd02afb8b89d25a9c8ebc7274e/lib/faker/creature/bird.rb#L130-L166","documentation":"Error \"#{tax_order} is not a valid taxonomic order\" thrown in faker-ruby/faker.","triggerScenarios":"Thrown at lib/faker/creature/bird.rb:148 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"cca4184947e09fdd02afb8b89d25a9c8ebc7274e","analyzedAt":"2026-08-21T16:25:39.145Z","schemaVersion":2},"datasetVersion":"2026-08-21T18:17:14.833Z"}