aboutsummaryrefslogtreecommitdiff
path: root/SocketHttpListener/WebSocketException.cs
diff options
context:
space:
mode:
authorWWWesten <4700006+WWWesten@users.noreply.github.com>2021-11-01 23:43:29 +0500
committerGitHub <noreply@github.com>2021-11-01 23:43:29 +0500
commit0a14279e2a21bcb9654a06a2d49e1e4f0cc5329c (patch)
treee1b1bd603b011ca98e5793e356326bf4a35a7050 /SocketHttpListener/WebSocketException.cs
parentf2817fef743eeb75a00782ceea363b2d3e7dc9f2 (diff)
parent76eeb8f655424d295e73ced8349c6fefee6ddb12 (diff)
Merge branch 'jellyfin:master' into master
Diffstat (limited to 'SocketHttpListener/WebSocketException.cs')
-rw-r--r--SocketHttpListener/WebSocketException.cs61
1 files changed, 0 insertions, 61 deletions
diff --git a/SocketHttpListener/WebSocketException.cs b/SocketHttpListener/WebSocketException.cs
deleted file mode 100644
index e86c46d0f..000000000
--- a/SocketHttpListener/WebSocketException.cs
+++ /dev/null
@@ -1,61 +0,0 @@
-using System;
-
-namespace SocketHttpListener
-{
- /// <summary>
- /// The exception that is thrown when a <see cref="WebSocket"/> gets a fatal error.
- /// </summary>
- public class WebSocketException : Exception
- {
- #region Internal Constructors
-
- internal WebSocketException()
- : this(CloseStatusCode.Abnormal, null, null)
- {
- }
-
- internal WebSocketException(string message)
- : this(CloseStatusCode.Abnormal, message, null)
- {
- }
-
- internal WebSocketException(CloseStatusCode code)
- : this(code, null, null)
- {
- }
-
- internal WebSocketException(string message, Exception innerException)
- : this(CloseStatusCode.Abnormal, message, innerException)
- {
- }
-
- internal WebSocketException(CloseStatusCode code, string message)
- : this(code, message, null)
- {
- }
-
- internal WebSocketException(CloseStatusCode code, string message, Exception innerException)
- : base(message ?? code.GetMessage(), innerException)
- {
- Code = code;
- }
-
- #endregion
-
- #region Public Properties
-
- /// <summary>
- /// Gets the status code indicating the cause for the exception.
- /// </summary>
- /// <value>
- /// One of the <see cref="CloseStatusCode"/> enum values, represents the status code indicating
- /// the cause for the exception.
- /// </value>
- public CloseStatusCode Code
- {
- get; private set;
- }
-
- #endregion
- }
-}