{"record":{"id":"4a044c1c461cb51a","repo":"rouge-ruby/rouge","slug":"not-in-palette-arg-inspect","errorCode":null,"errorMessage":"not in palette: #{arg.inspect}","messagePattern":"not in palette: #(.+?)","errorType":"exception","errorClass":"RuntimeError","httpStatus":null,"severity":"error","filePath":"lib/rouge/theme.rb","lineNumber":62,"sourceCode":"    end\n\n    def styles\n      @styles ||= self.class.styles.dup\n    end\n\n    @palette = {}\n    def self.palette(arg={})\n      @palette ||= InheritableHash.new(superclass.palette)\n\n      if arg.is_a? Hash\n        @palette.merge! arg\n        @palette\n      else\n        case arg\n        when /#[0-9a-f]+/i\n          arg\n        else\n          @palette[arg] or raise \"not in palette: #{arg.inspect}\"\n        end\n      end\n    end\n\n    def palette(*a) self.class.palette(*a) end\n\n    @styles = {}\n    def self.styles\n      @styles ||= InheritableHash.new(superclass.styles)\n    end\n\n    def self.render(opts={}, &b)\n      new(opts).render(&b)\n    end\n\n    def get_own_style(token)\n      self.class.get_own_style(token)\n    end","sourceCodeStart":44,"sourceCodeEnd":80,"githubUrl":"https://github.com/rouge-ruby/rouge/blob/bd7dad7b0939c556e582a0370686f6fc022c8af5/lib/rouge/theme.rb#L44-L80","documentation":"Error \"not in palette: #{arg.inspect}\" thrown in rouge-ruby/rouge.","triggerScenarios":"Thrown at lib/rouge/theme.rb:62 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":"bd7dad7b0939c556e582a0370686f6fc022c8af5","analyzedAt":"2026-08-23T11:34:50.713Z","schemaVersion":2},"datasetVersion":"2026-08-23T16:17:53.355Z"}