{"record":{"id":"4cf4f526877a0420","repo":"mame/quine-relay","slug":"ante-exception-message-on-line-line-pc","errorCode":null,"errorMessage":"Ante exception: #{message} on line #{@line} (pc:#{@pc})","messagePattern":"Ante exception: #(.+?) on line #(.+?) \\(pc:#(.+?)\\)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"vendor/ante.rb","lineNumber":151,"sourceCode":"      rank = instance_variable_get(\"@#{suit}\") if rank == \"A\"\n      case suit\n      when \"♦\" then initial += rank\n      when \"♥\" then initial *= rank\n      when \"♠\" then initial -= rank\n      when \"♣\" then\n        if rank != 0\n          initial /= rank\n        else\n          exception(\"division by zero\")\n        end\n      end\n    end\n    instance_variable_set(\"@#{target}\", initial)\n    # dump_registers\n  end\n\n  def exception(message)\n    abort(\"Ante exception: #{message} on line #{@line} (pc:#{@pc})\")\n  end\n\n  def dump_registers\n    instance_variables.each do |i|\n      puts \"  #{i}: \" + instance_variable_get(\"#{i}\").to_s if i.size == 2\n    end\n  end\nend\n\nif ARGV[0]\n  Ante.new.run(IO.read(ARGV[0], encoding: \"UTF-8\"))\nelse\n  puts \"usage: ante filename.ante\"\nend\n","sourceCodeStart":133,"sourceCodeEnd":166,"githubUrl":"https://github.com/mame/quine-relay/blob/c2aa5098d3e95409a36185b16371089dd04db642/vendor/ante.rb#L133-L166","documentation":"Error \"Ante exception: #{message} on line #{@line} (pc:#{@pc})\" thrown in mame/quine-relay.","triggerScenarios":"Thrown at vendor/ante.rb:151 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":"c2aa5098d3e95409a36185b16371089dd04db642","analyzedAt":"2026-08-21T15:28:43.741Z","schemaVersion":2},"datasetVersion":"2026-08-21T18:17:14.833Z"}