2020-05-15 19:06:24 +01:00
|
|
|
namespace SpotifyAPI.Web.Auth
|
|
|
|
{
|
|
|
|
[System.Serializable]
|
|
|
|
public class AuthException : System.Exception
|
|
|
|
{
|
2020-11-13 13:43:00 +00:00
|
|
|
public AuthException(string? error, string? state)
|
2020-05-15 19:06:24 +01:00
|
|
|
{
|
|
|
|
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) { }
|
|
|
|
|
2020-05-25 17:00:38 +01:00
|
|
|
public string? Error { get; set; }
|
|
|
|
public string? State { get; set; }
|
2020-05-15 19:06:24 +01:00
|
|
|
}
|
|
|
|
}
|