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

32 lines
648 B

  1. #if !NET20
  2. using System;
  3. namespace Apewer.WebSocket
  4. {
  5. internal class WebSocketException : Exception
  6. {
  7. internal WebSocketException(ushort statusCode) : base()
  8. {
  9. StatusCode = statusCode;
  10. }
  11. internal WebSocketException(ushort statusCode, string message) : base(message)
  12. {
  13. StatusCode = statusCode;
  14. }
  15. internal WebSocketException(ushort statusCode, string message, Exception innerException) : base(message, innerException)
  16. {
  17. StatusCode = statusCode;
  18. }
  19. public ushort StatusCode { get; private set;}
  20. }
  21. }
  22. #endif