forked from JohnnyCrazy/SpotifyAPI-NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAuthException.cs
More file actions
25 lines (22 loc) · 752 Bytes
/
AuthException.cs
File metadata and controls
25 lines (22 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System;
using System.Runtime.Serialization;
namespace SpotifyAPI.Web.Auth
{
[Serializable]
public class AuthException : Exception
{
public AuthException(string? error, string? state)
{
Error = error;
State = state;
}
public AuthException(string message) : base(message) { }
public AuthException(string message, Exception inner) : base(message, inner) { }
#if NET8_0_OR_GREATER
[Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.")]
#endif
protected AuthException(SerializationInfo info, StreamingContext context) : base(info, context) { }
public string? Error { get; set; }
public string? State { get; set; }
}
}