title: Symfony 2. How to catch Exception parameter in Twig template?
body: <p>I'm throwing some exception in my controller.</p>
  
  <p>For example:</p>
  
  <pre><code>throw new AccessDeniedHttpException('some_text');
  </code></pre>
  
  <p>How can i catch it's <strong>'some_text'</strong> parameter in my Twig template?</p>
  
  <p>I found the {{ status_code }} and {{ status_text }} variables, but can't find something similar that solve my problem.</p>
  
  <p>P.S. I'm already use custom error page. I just want give users specific error explanations.</p>
  
  <p>Thnx.</p>