Files
tgstation-server/src/Tgstation.Server.Client/InsufficientPermissionsException.cs
T
Jordan Brown b9586c7fee The great stylecop update
Beware those that read into this commit. Here there be style conformance...

Closes #1252
2021-05-09 19:27:09 -04:00

46 lines
1.6 KiB
C#

using System;
using System.Net.Http;
namespace Tgstation.Server.Client
{
/// <summary>
/// Occurs when the client attempts to perform an action they do not have the rights for.
/// </summary>
public sealed class InsufficientPermissionsException : ApiException
{
/// <summary>
/// Initializes a new instance of the <see cref="InsufficientPermissionsException"/> class.
/// </summary>
/// <param name="responseMessage">The <see cref="HttpResponseMessage"/> for the <see cref="ClientException"/>.</param>
public InsufficientPermissionsException(HttpResponseMessage responseMessage) : base(
responseMessage,
"The current user has insufficient permissions to perform the requested operation!")
{
}
/// <summary>
/// Initializes a new instance of the <see cref="InsufficientPermissionsException"/> class.
/// </summary>
public InsufficientPermissionsException()
{
}
/// <summary>
/// Initializes a new instance of the <see cref="InsufficientPermissionsException"/> class.
/// </summary>
/// <param name="message">The message for the <see cref="Exception"/>.</param>
public InsufficientPermissionsException(string message) : base(message)
{
}
/// <summary>
/// Initializes a new instance of the <see cref="InsufficientPermissionsException"/> class.
/// </summary>
/// <param name="message">The message for the <see cref="Exception"/>.</param>
/// <param name="innerException">The inner <see cref="Exception"/> for the base <see cref="Exception"/>.</param>
public InsufficientPermissionsException(string message, Exception innerException) : base(message, innerException)
{
}
}
}