init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
20
Kreta.Client/ClientException.cs
Normal file
20
Kreta.Client/ClientException.cs
Normal file
|
@ -0,0 +1,20 @@
|
|||
using System;
|
||||
using System.Net;
|
||||
|
||||
namespace Kreta.Client
|
||||
{
|
||||
public class ClientException : Exception
|
||||
{
|
||||
public HttpStatusCode StatusCode { get; set; }
|
||||
|
||||
public ClientException(string message)
|
||||
: base(message)
|
||||
{ }
|
||||
|
||||
public ClientException(string message, HttpStatusCode statusCode)
|
||||
: base(message)
|
||||
{
|
||||
StatusCode = statusCode;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue