Login to Discord, better Configuration errors handling.
parent
1f08fa0d9d
commit
9a6a7946f7
@ -0,0 +1,7 @@
|
||||
[discord]
|
||||
; Change next value to true if the account is a bot, thus logins using a token.
|
||||
; Don't forget to uncomment token then
|
||||
isBot = false
|
||||
email = bot@example.com
|
||||
password = samplePassword
|
||||
; token = sampleToken
|
@ -0,0 +1,34 @@
|
||||
package net.pingex.discordbot;
|
||||
|
||||
/**
|
||||
* Exception thrown when an issue involving Configuration occurs.
|
||||
* @version 0.1-dev
|
||||
* @author Raphael "Pingex" NAAS
|
||||
*/
|
||||
public class ConfigurationException extends Exception
|
||||
{
|
||||
public ConfigurationException(String message)
|
||||
{
|
||||
super(message);
|
||||
}
|
||||
|
||||
protected ConfigurationException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)
|
||||
{
|
||||
super(message, cause, enableSuppression, writableStackTrace);
|
||||
}
|
||||
|
||||
public ConfigurationException(Throwable cause)
|
||||
{
|
||||
super(cause);
|
||||
}
|
||||
|
||||
public ConfigurationException(String message, Throwable cause)
|
||||
{
|
||||
super(message, cause);
|
||||
}
|
||||
|
||||
public ConfigurationException()
|
||||
{
|
||||
super();
|
||||
}
|
||||
}
|
Reference in New Issue