pan>(<span class="ruby-identifier">exception_hash</span>, <span class="ruby-identifier">app_id</span>)
  <span class="ruby-identifier">where</span>(<span class="ruby-string">&quot;exception_message like ? and exception_class = ? and controller = ? and method = ? and app_id = ?&quot;</span>,
                      <span class="ruby-identifier">exception_hash</span>[<span class="ruby-value">:exception_message</span>].<span class="ruby-identifier">split</span>(<span class="ruby-constant">EXCEPTION_MESSAGE_SPLIT