/// <summary>
 /// Initializes a new instance of the <see cref="WebApiJsonErrorException"/> class.
 /// </summary>
 /// <param name="response">The status message that contains the reason of the server error response.</param>
 /// <param name="inner">The exception that is the cause of the current exception, or a null reference if no inner exception is specified.</param>
 public WebApiJsonErrorException(WebApiJsonStatusMessage response, Exception inner = null)
   : base(response.Message, inner)
 {
   this.Response = response;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="WebApiJsonErrorException"/> class.
 /// </summary>
 /// <param name="response">The status message that contains the reason of the server error response.</param>
 /// <param name="inner">The exception that is the cause of the current exception, or a null reference if no inner exception is specified.</param>
 public WebApiJsonErrorException(WebApiJsonStatusMessage response, Exception inner = null)
     : base(response.Message, inner)
 {
     this.Response = response;
 }