{"record":{"id":"946c9eda0e18fb4f","repo":"faker-ruby/faker","slug":"characters-quoted-can-be-left-blank-or-quoted-ch","errorCode":null,"errorMessage":"Characters quoted can be left blank or #{quoted_characters.join(', ')}","messagePattern":"Characters quoted can be left blank or #(.+?)","errorType":"exception","errorClass":"ArgumentError","httpStatus":null,"severity":"error","filePath":"lib/faker/books/dune.rb","lineNumber":83,"sourceCode":"        #\n        # @example\n        #   Faker::Books::Dune.quote\n        #     #=> \"A dead man, surely, no longer requires that water.\"\n        # @example\n        #   Faker::Books::Dune.quote(character: \"baron_harkonnen\")\n        #     #=> \"He who controls the spice, controls the universe!\"\n        #\n        # @faker.version 1.9.3\n        def quote(character: nil)\n          quoted_characters = translate('faker.dune.quotes').keys\n\n          if character.nil?\n            character = sample(quoted_characters).to_s\n          else\n            character = character.to_s.downcase\n\n            unless quoted_characters.include?(character.to_sym)\n              raise ArgumentError,\n                    \"Characters quoted can be left blank or #{quoted_characters.join(', ')}\"\n            end\n          end\n\n          fetch(\"dune.quotes.#{character}\")\n        end\n\n        ##\n        # Produces a saying from Dune\n        #\n        # @param source [String]\n        #\n        # @return [String]\n        #\n        # @example\n        #   Faker::Books::Dune.saying #=> \"You do not beg the sun for mercy.\"\n        # @example\n        #   Faker::Books::Dune.saying(source: \"fremen\")","sourceCodeStart":65,"sourceCodeEnd":101,"githubUrl":"https://github.com/faker-ruby/faker/blob/cca4184947e09fdd02afb8b89d25a9c8ebc7274e/lib/faker/books/dune.rb#L65-L101","documentation":"Error \"Characters quoted can be left blank or #{quoted_characters.join(', ')}\" thrown in faker-ruby/faker.","triggerScenarios":"Thrown at lib/faker/books/dune.rb:83 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"}