mirror of
https://github.com/achiez/NebulaAuth-Steam-Desktop-Authenticator-by-Achies.git
synced 2026-07-25 14:24:32 +00:00
23 lines
739 B
C#
23 lines
739 B
C#
using SteamLib.Core.StatusCodes;
|
|
|
|
namespace SteamLib.Exceptions;
|
|
|
|
public class SteamStatusCodeException : Exception
|
|
{
|
|
public SteamStatusCode StatusCode { get; }
|
|
public string? Response { get; }
|
|
|
|
public SteamStatusCodeException(SteamStatusCode statusCode, string? response, Exception? innerException = null)
|
|
: base($"Steam return not successful status code {statusCode}", innerException)
|
|
{
|
|
StatusCode = statusCode;
|
|
Response = response;
|
|
}
|
|
|
|
public SteamStatusCodeException(string message, SteamStatusCode statusCode, string? response = null, Exception? innerException = null)
|
|
: base(message, innerException)
|
|
{
|
|
StatusCode = statusCode;
|
|
Response = response;
|
|
}
|
|
} |