mirror of
https://github.com/EnderIce2/SDR-RPC.git
synced 2025-07-12 06:29:14 +00:00
First commit
This commit is contained in:
24
DiscordAPI/Exceptions/UninitializedException.cs
Normal file
24
DiscordAPI/Exceptions/UninitializedException.cs
Normal file
@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace DiscordRPC.Exceptions
|
||||
{
|
||||
/// <summary>
|
||||
/// Thrown when an action is performed on a client that has not yet been initialized
|
||||
/// </summary>
|
||||
public class UninitializedException : Exception
|
||||
{
|
||||
/// <summary>
|
||||
/// Creates a new unintialized exception
|
||||
/// </summary>
|
||||
/// <param name="message"></param>
|
||||
internal UninitializedException(string message) : base(message) { }
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new uninitialized exception with default message.
|
||||
/// </summary>
|
||||
internal UninitializedException() : this("Cannot perform action because the client has not been initialized yet or has been deinitialized.") { }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user