blob: 7fd51ea5f639c70b84782d8020c0c372ee481f41 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
using System;
using System.Net;
namespace Exceptions
{
public class InvalidApiRequestException : Exception
{
public InvalidApiRequestException(HttpStatusCode httpStatusCode, string[] errors, string httpResponsePhrase)
: base(httpResponsePhrase + " Check `Errors` for a list of errors returned by the API.")
{
ResponseStatusCode = httpStatusCode;
Errors = errors;
}
public String[] Errors { get; set; }
public HttpStatusCode ResponseStatusCode { get; private set; }
}
}
|