title: Handle exception in asp.net mvc controller
body: <p>I've create new attribute and in the logic I've some exception
  My question is: how should I handle it in the <strong>controller</strong> and pass it to the view?
  In the code below I throw the exception, how should I move it to the view?</p>
  
  <p>This is the attribute in the controller</p>
  
  <pre><code>[HttpPost]
  [CheckToken]
  public JsonResult Edit(Roles role)
  {
      ...
  }
  </code></pre>
  
  <p>This is the attribute</p>
  
  <pre><code>public class CheckToken : FilterAttribute, IAuthorizationFilter
  {
      ....
  
      catch (HttpAntiForgeryException e)
      {
          throw new HttpAntiForgeryException("token not found");
      }
  }
  </code></pre>