diff options
| author | JP Dillingham <jp@dillingham.me> | 2023-07-25 08:14:29 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-25 08:14:29 -0500 |
| commit | 76ea31e3556c25df85a9708e3cbbe6062b0abb44 (patch) | |
| tree | 627b720e05e26aab7b4a3ee86445f01ee6984528 /src/slskd/Common | |
| parent | 50bf39a16261ac4a0ba9f70501c183867d382712 (diff) | |
| parent | f3b4f3fc6328c5b56820b93a92d83680e0498833 (diff) | |
| download | slskd-76ea31e3556c25df85a9708e3cbbe6062b0abb44.tar.gz | |
Merge pull request #941 from slskd/view-files
Add the ability to view and delete downloaded and incomplete files to the UI
Diffstat (limited to 'src/slskd/Common')
| -rw-r--r-- | src/slskd/Common/Exceptions/UnauthorizedException.cs (renamed from src/slskd/Common/Exceptions/ForbiddenException.cs) | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/slskd/Common/Exceptions/ForbiddenException.cs b/src/slskd/Common/Exceptions/UnauthorizedException.cs index 814b8cfc..a7179c80 100644 --- a/src/slskd/Common/Exceptions/ForbiddenException.cs +++ b/src/slskd/Common/Exceptions/UnauthorizedException.cs @@ -1,4 +1,4 @@ -// <copyright file="ForbiddenException.cs" company="slskd Team"> +// <copyright file="UnauthorizedException.cs" company="slskd Team"> // Copyright (c) slskd Team. All rights reserved. // // This program is free software: you can redistribute it and/or modify @@ -22,31 +22,31 @@ namespace slskd using System.Runtime.Serialization; /// <summary> - /// Represents errors that originate when an attempt is made to access a restricted resource. + /// Represents errors that originate when a restricted resources is accessed without authorization. /// </summary> [ExcludeFromCodeCoverage] [Serializable] - public class ForbiddenException : SlskdException + public class UnauthorizedException : SlskdException { /// <summary> - /// Initializes a new instance of the <see cref="ForbiddenException"/> class. + /// Initializes a new instance of the <see cref="UnauthorizedException"/> class. /// </summary> - public ForbiddenException() + public UnauthorizedException() : base() { } /// <summary> - /// Initializes a new instance of the <see cref="ForbiddenException"/> class with a specified error message. + /// Initializes a new instance of the <see cref="UnauthorizedException"/> class with a specified error message. /// </summary> /// <param name="message">The message that describes the error.</param> - public ForbiddenException(string message) + public UnauthorizedException(string message) : base(message) { } /// <summary> - /// Initializes a new instance of the <see cref="ForbiddenException"/> class with a specified error message and a + /// Initializes a new instance of the <see cref="UnauthorizedException"/> class with a specified error message and a /// reference to the inner exception that is the cause of this exception. /// </summary> /// <param name="message">The message that describes the error.</param> @@ -54,17 +54,17 @@ namespace slskd /// The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no /// inner exception is specified. /// </param> - public ForbiddenException(string message, Exception innerException) + public UnauthorizedException(string message, Exception innerException) : base(message, innerException) { } /// <summary> - /// Initializes a new instance of the <see cref="ForbiddenException"/> class with serialized data. + /// 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 ForbiddenException(SerializationInfo info, StreamingContext context) + protected UnauthorizedException(SerializationInfo info, StreamingContext context) : base(info, context) { } |
