title: SignalR Catching Exceptions
body: <p>I have a simple login hub which clients may submit a username. The hub throws a exception if the username is already in use. On the client I am trying to handle the exception and read the message. However the message I am reading is 'One or more errors has occurred'.</p>
  
  <pre><code>try
  {
      await Client.SignIn(user);
      UserName = SignInInput;                      
  }
  catch (Exception ex)
  { //One or more errors has occurred }
  </code></pre>
  
  <p>I asked this message on the SignalR github and I received the response:</p>
  
  <blockquote>
    <p>You need to unwrap the errors. We provide this functionality via the SignalRError object. Here's a sample of how you can unwrap an <code>Exception</code> e.</p>
  
  <pre><code>using (var error = e.GetError())
  {
      Console.Error.WriteLine(error);
  }
  </code></pre>
    
    <p>In the future please ask questions on sites such as Stackoverflow or chat with us in <a href="http://jabbr.net/#/rooms/signalr" rel="nofollow">http://jabbr.net/#/rooms/signalr</a>.</p>
  </blockquote>
  
  <p>Now I'm looking through my Object Browser and I can't seem to find any such method or class anywhere. </p>