You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

HttpException.cs 327 B

12345678910111213141516
  1. using System;
  2. using System.Net;
  3. namespace Discord.Net
  4. {
  5. public class HttpException : Exception
  6. {
  7. public HttpStatusCode StatusCode { get; }
  8. public HttpException(HttpStatusCode statusCode)
  9. : base($"The server responded with error {(int)statusCode} ({statusCode})")
  10. {
  11. StatusCode = statusCode;
  12. }
  13. }
  14. }