diff options
| author | JP Dillingham <jp@dillingham.me> | 2024-01-20 18:34:47 -0600 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2024-01-20 18:34:47 -0600 |
| commit | 26095bcf80af696a898bbfe62cf72ed1649d9eea (patch) | |
| tree | aa57a6fb990d2ec9650bf1cfdc0c6f7c95799190 /src/slskd/Common/Exceptions | |
| parent | 22abf6f22f8172410c6c23567f0a5b90fc3e532d (diff) | |
| download | slskd-26095bcf80af696a898bbfe62cf72ed1649d9eea.tar.gz | |
resolve warnings
Diffstat (limited to 'src/slskd/Common/Exceptions')
12 files changed, 0 insertions, 141 deletions
diff --git a/src/slskd/Common/Exceptions/ApplicationShutdownException.cs b/src/slskd/Common/Exceptions/ApplicationShutdownException.cs index e30b5c79..310b317c 100644 --- a/src/slskd/Common/Exceptions/ApplicationShutdownException.cs +++ b/src/slskd/Common/Exceptions/ApplicationShutdownException.cs @@ -19,13 +19,11 @@ namespace slskd { using System; using System.Diagnostics.CodeAnalysis; - using System.Runtime.Serialization; /// <summary> /// Represents a normal application shutdown. /// </summary> [ExcludeFromCodeCoverage] - [Serializable] public class ApplicationShutdownException : SlskdException { /// <summary> @@ -58,15 +56,5 @@ namespace slskd : base(message, innerException) { } - - /// <summary> - /// Initializes a new instance of the <see cref="ApplicationShutdownException"/> class with serialized data. - /// </summary> - /// <param name="info">The SerializationInfo that holds the serialized object data about the exception being thrown.</param> - /// <param name="context">The StreamingContext that contains contextual information about the source or destination.</param> - protected ApplicationShutdownException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } } }
\ No newline at end of file diff --git a/src/slskd/Common/Exceptions/GitHubException.cs b/src/slskd/Common/Exceptions/GitHubException.cs index 75c72826..697ae49a 100644 --- a/src/slskd/Common/Exceptions/GitHubException.cs +++ b/src/slskd/Common/Exceptions/GitHubException.cs @@ -19,13 +19,11 @@ namespace slskd { using System; using System.Diagnostics.CodeAnalysis; - using System.Runtime.Serialization; /// <summary> /// Represents a normal application shutdown. /// </summary> [ExcludeFromCodeCoverage] - [Serializable] public class GitHubException : Exception { /// <summary> @@ -58,15 +56,5 @@ namespace slskd : base(message, innerException) { } - - /// <summary> - /// Initializes a new instance of the <see cref="GitHubException"/> class with serialized data. - /// </summary> - /// <param name="info">The SerializationInfo that holds the serialized object data about the exception being thrown.</param> - /// <param name="context">The StreamingContext that contains contextual information about the source or destination.</param> - protected GitHubException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } } }
\ No newline at end of file diff --git a/src/slskd/Common/Exceptions/IntentionalDisconnectException.cs b/src/slskd/Common/Exceptions/IntentionalDisconnectException.cs index d5293e63..c2f09c4b 100644 --- a/src/slskd/Common/Exceptions/IntentionalDisconnectException.cs +++ b/src/slskd/Common/Exceptions/IntentionalDisconnectException.cs @@ -19,13 +19,11 @@ namespace slskd { using System; using System.Diagnostics.CodeAnalysis; - using System.Runtime.Serialization; /// <summary> /// Represents an intentional client disconnect. /// </summary> [ExcludeFromCodeCoverage] - [Serializable] public class IntentionalDisconnectException : SlskdException { /// <summary> @@ -58,15 +56,5 @@ namespace slskd : base(message, innerException) { } - - /// <summary> - /// Initializes a new instance of the <see cref="IntentionalDisconnectException"/> class with serialized data. - /// </summary> - /// <param name="info">The SerializationInfo that holds the serialized object data about the exception being thrown.</param> - /// <param name="context">The StreamingContext that contains contextual information about the source or destination.</param> - protected IntentionalDisconnectException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } } }
\ No newline at end of file diff --git a/src/slskd/Common/Exceptions/NotFoundException.cs b/src/slskd/Common/Exceptions/NotFoundException.cs index cc0f6969..414ccb4b 100644 --- a/src/slskd/Common/Exceptions/NotFoundException.cs +++ b/src/slskd/Common/Exceptions/NotFoundException.cs @@ -19,13 +19,11 @@ namespace slskd { using System; using System.Diagnostics.CodeAnalysis; - using System.Runtime.Serialization; /// <summary> /// Represents errors that originate when a searched resource can't be located. /// </summary> [ExcludeFromCodeCoverage] - [Serializable] public class NotFoundException : SlskdException { /// <summary> @@ -58,15 +56,5 @@ namespace slskd : base(message, innerException) { } - - /// <summary> - /// Initializes a new instance of the <see cref="NotFoundException"/> class with serialized data. - /// </summary> - /// <param name="info">The SerializationInfo that holds the serialized object data about the exception being thrown.</param> - /// <param name="context">The StreamingContext that contains contextual information about the source or destination.</param> - protected NotFoundException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } } }
\ No newline at end of file diff --git a/src/slskd/Common/Exceptions/OutOfRangeException.cs b/src/slskd/Common/Exceptions/OutOfRangeException.cs index 7de8cc7b..3eb3ab6d 100644 --- a/src/slskd/Common/Exceptions/OutOfRangeException.cs +++ b/src/slskd/Common/Exceptions/OutOfRangeException.cs @@ -58,15 +58,5 @@ namespace slskd : base(message, innerException) { } - - /// <summary> - /// Initializes a new instance of the <see cref="OutOfRangeException"/> class with serialized data. - /// </summary> - /// <param name="info">The SerializationInfo that holds the serialized object data about the exception being thrown.</param> - /// <param name="context">The StreamingContext that contains contextual information about the source or destination.</param> - protected OutOfRangeException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } } }
\ No newline at end of file diff --git a/src/slskd/Common/Exceptions/RelayException.cs b/src/slskd/Common/Exceptions/RelayException.cs index 11a6bd9e..3b8a4fbe 100644 --- a/src/slskd/Common/Exceptions/RelayException.cs +++ b/src/slskd/Common/Exceptions/RelayException.cs @@ -19,7 +19,6 @@ namespace slskd { using System; using System.Diagnostics.CodeAnalysis; - using System.Runtime.Serialization; /// <summary> /// Represents an error related to the slskd relay feature. @@ -58,15 +57,5 @@ namespace slskd : base(message, innerException) { } - - /// <summary> - /// Initializes a new instance of the <see cref="RelayException"/> class with serialized data. - /// </summary> - /// <param name="info">The SerializationInfo that holds the serialized object data about the exception being thrown.</param> - /// <param name="context">The StreamingContext that contains contextual information about the source or destination.</param> - protected RelayException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } } }
\ No newline at end of file diff --git a/src/slskd/Common/Exceptions/RetryException.cs b/src/slskd/Common/Exceptions/RetryException.cs index c688f377..3adadd2e 100644 --- a/src/slskd/Common/Exceptions/RetryException.cs +++ b/src/slskd/Common/Exceptions/RetryException.cs @@ -19,13 +19,11 @@ namespace slskd { using System; using System.Diagnostics.CodeAnalysis; - using System.Runtime.Serialization; /// <summary> /// Represents erorrs that originate while attempting to execute retry logic. /// </summary> [ExcludeFromCodeCoverage] - [Serializable] public class RetryException : Exception { /// <summary> @@ -58,15 +56,5 @@ namespace slskd : base(message, innerException) { } - - /// <summary> - /// Initializes a new instance of the <see cref="RetryException"/> class with serialized data. - /// </summary> - /// <param name="info">The SerializationInfo that holds the serialized object data about the exception being thrown.</param> - /// <param name="context">The StreamingContext that contains contextual information about the source or destination.</param> - protected RetryException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } } }
\ No newline at end of file diff --git a/src/slskd/Common/Exceptions/ShareInitializationException.cs b/src/slskd/Common/Exceptions/ShareInitializationException.cs index 31e45b91..2624da21 100644 --- a/src/slskd/Common/Exceptions/ShareInitializationException.cs +++ b/src/slskd/Common/Exceptions/ShareInitializationException.cs @@ -19,13 +19,11 @@ namespace slskd { using System; using System.Diagnostics.CodeAnalysis; - using System.Runtime.Serialization; /// <summary> /// Represents an error that occurs when multiple share scans are attempted concurrently. /// </summary> [ExcludeFromCodeCoverage] - [Serializable] public class ShareInitializationException : SlskdException { /// <summary> @@ -58,15 +56,5 @@ namespace slskd : base(message, innerException) { } - - /// <summary> - /// Initializes a new instance of the <see cref="ShareInitializationException"/> class with serialized data. - /// </summary> - /// <param name="info">The SerializationInfo that holds the serialized object data about the exception being thrown.</param> - /// <param name="context">The StreamingContext that contains contextual information about the source or destination.</param> - protected ShareInitializationException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } } }
\ No newline at end of file diff --git a/src/slskd/Common/Exceptions/ShareScanInProgressException.cs b/src/slskd/Common/Exceptions/ShareScanInProgressException.cs index 2e548930..b6b1a719 100644 --- a/src/slskd/Common/Exceptions/ShareScanInProgressException.cs +++ b/src/slskd/Common/Exceptions/ShareScanInProgressException.cs @@ -19,13 +19,11 @@ namespace slskd { using System; using System.Diagnostics.CodeAnalysis; - using System.Runtime.Serialization; /// <summary> /// Represents an error that occurs when multiple share scans are attempted concurrently. /// </summary> [ExcludeFromCodeCoverage] - [Serializable] public class ShareScanInProgressException : SlskdException { /// <summary> @@ -58,15 +56,5 @@ namespace slskd : base(message, innerException) { } - - /// <summary> - /// Initializes a new instance of the <see cref="ShareScanInProgressException"/> class with serialized data. - /// </summary> - /// <param name="info">The SerializationInfo that holds the serialized object data about the exception being thrown.</param> - /// <param name="context">The StreamingContext that contains contextual information about the source or destination.</param> - protected ShareScanInProgressException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } } }
\ No newline at end of file diff --git a/src/slskd/Common/Exceptions/ShareValidationException.cs b/src/slskd/Common/Exceptions/ShareValidationException.cs index 97a3e126..c214556e 100644 --- a/src/slskd/Common/Exceptions/ShareValidationException.cs +++ b/src/slskd/Common/Exceptions/ShareValidationException.cs @@ -19,13 +19,11 @@ namespace slskd { using System; using System.Diagnostics.CodeAnalysis; - using System.Runtime.Serialization; /// <summary> /// Represents an error that occurs when multiple share scans are attempted concurrently. /// </summary> [ExcludeFromCodeCoverage] - [Serializable] public class ShareValidationException : SlskdException { /// <summary> @@ -58,15 +56,5 @@ namespace slskd : base(message, innerException) { } - - /// <summary> - /// Initializes a new instance of the <see cref="ShareValidationException"/> class with serialized data. - /// </summary> - /// <param name="info">The SerializationInfo that holds the serialized object data about the exception being thrown.</param> - /// <param name="context">The StreamingContext that contains contextual information about the source or destination.</param> - protected ShareValidationException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } } }
\ No newline at end of file diff --git a/src/slskd/Common/Exceptions/SlskdException.cs b/src/slskd/Common/Exceptions/SlskdException.cs index 6b4cfc2a..22676161 100644 --- a/src/slskd/Common/Exceptions/SlskdException.cs +++ b/src/slskd/Common/Exceptions/SlskdException.cs @@ -19,13 +19,11 @@ namespace slskd { using System; using System.Diagnostics.CodeAnalysis; - using System.Runtime.Serialization; /// <summary> /// Represents erorrs that originate from slskd logic. /// </summary> [ExcludeFromCodeCoverage] - [Serializable] public class SlskdException : Exception { /// <summary> @@ -58,15 +56,5 @@ namespace slskd : base(message, innerException) { } - - /// <summary> - /// Initializes a new instance of the <see cref="SlskdException"/> class with serialized data. - /// </summary> - /// <param name="info">The SerializationInfo that holds the serialized object data about the exception being thrown.</param> - /// <param name="context">The StreamingContext that contains contextual information about the source or destination.</param> - protected SlskdException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } } }
\ No newline at end of file diff --git a/src/slskd/Common/Exceptions/UnauthorizedException.cs b/src/slskd/Common/Exceptions/UnauthorizedException.cs index a7179c80..de1cac3e 100644 --- a/src/slskd/Common/Exceptions/UnauthorizedException.cs +++ b/src/slskd/Common/Exceptions/UnauthorizedException.cs @@ -19,13 +19,11 @@ namespace slskd { using System; using System.Diagnostics.CodeAnalysis; - using System.Runtime.Serialization; /// <summary> /// Represents errors that originate when a restricted resources is accessed without authorization. /// </summary> [ExcludeFromCodeCoverage] - [Serializable] public class UnauthorizedException : SlskdException { /// <summary> @@ -58,15 +56,5 @@ namespace slskd : base(message, innerException) { } - - /// <summary> - /// Initializes a new instance of the <see cref="UnauthorizedException"/> class with serialized data. - /// </summary> - /// <param name="info">The SerializationInfo that holds the serialized object data about the exception being thrown.</param> - /// <param name="context">The StreamingContext that contains contextual information about the source or destination.</param> - protected UnauthorizedException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } } }
\ No newline at end of file |
