Package net.dv8tion.jda.api.exceptions
Class GuildUnavailableException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- net.dv8tion.jda.api.exceptions.GuildUnavailableException
-
- All Implemented Interfaces:
Serializable
public class GuildUnavailableException extends RuntimeException
Indicates that aGuild
is notavailable
Thrown when an operation requires a Guild to be available andGuild#isAvailable()
isfalse
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GuildUnavailableException()
Creates a new GuildUnavailableException instanceGuildUnavailableException(String reason)
Creates a new GuildUnavailableException instance
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
GuildUnavailableException
public GuildUnavailableException()
Creates a new GuildUnavailableException instance
-
GuildUnavailableException
public GuildUnavailableException(String reason)
Creates a new GuildUnavailableException instance- Parameters:
reason
- The reason for this Exception
-
-