mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-23 14:46:26 +00:00
21 lines
634 B
C#
21 lines
634 B
C#
namespace SpotifyAPI.Web.Auth
|
|
{
|
|
[System.Serializable]
|
|
public class AuthException : System.Exception
|
|
{
|
|
public AuthException(string? error, string? state)
|
|
{
|
|
Error = error;
|
|
State = state;
|
|
}
|
|
public AuthException(string message) : base(message) { }
|
|
public AuthException(string message, System.Exception inner) : base(message, inner) { }
|
|
protected AuthException(
|
|
System.Runtime.Serialization.SerializationInfo info,
|
|
System.Runtime.Serialization.StreamingContext context) : base(info, context) { }
|
|
|
|
public string? Error { get; set; }
|
|
public string? State { get; set; }
|
|
}
|
|
}
|