-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from anon5r/minor-bugs
Fix and update some minor bugs
- Loading branch information
Showing
20 changed files
with
413 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
using System; | ||
using System.Runtime.Serialization; | ||
|
||
namespace KsGameLauncher | ||
{ | ||
[Serializable] | ||
internal class PrivacyConfirmationException : Exception | ||
{ | ||
public static string PrivacyURL; | ||
|
||
public PrivacyConfirmationException() | ||
{ | ||
} | ||
|
||
public PrivacyConfirmationException(string message) : base(message) | ||
{ | ||
} | ||
|
||
public PrivacyConfirmationException(string message, Exception innerException) : base(message, innerException) | ||
{ | ||
} | ||
|
||
protected PrivacyConfirmationException(SerializationInfo info, StreamingContext context) : base(info, context) | ||
{ | ||
} | ||
|
||
public PrivacyConfirmationException(string message, string URL) : base(message) | ||
{ | ||
PrivacyURL = URL; | ||
} | ||
|
||
public PrivacyConfirmationException(string message, string URL, Exception innerException) : base(message, innerException) | ||
{ | ||
PrivacyURL = URL; | ||
} | ||
|
||
public void SetTosURL(string url) | ||
{ | ||
PrivacyURL = url ?? throw new ArgumentNullException("url"); | ||
} | ||
public void SetTosURL(Uri url) | ||
{ | ||
if (url == null) | ||
throw new ArgumentNullException("url"); | ||
PrivacyURL = url.ToString(); | ||
} | ||
public string GetPrivacyURL() | ||
{ | ||
return PrivacyURL; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.