Class GuildUnavailableException

  • All Implemented Interfaces:
    java.io.Serializable

    @Deprecated
    @ForRemoval(deadline="4.4.0")
    @DeprecatedSince("4.1.0")
    public class GuildUnavailableException
    extends java.lang.RuntimeException
    Deprecated.
    This will be removed in favor of a better system which does not keep unavailable guilds in cache in the first place.
    Indicates that a Guild is not available
    Thrown when an operation requires a Guild to be available and Guild#isAvailable() is false
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      GuildUnavailableException()
      Deprecated.
      Creates a new GuildUnavailableException instance
      GuildUnavailableException​(java.lang.String reason)
      Deprecated.
      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
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • GuildUnavailableException

        public GuildUnavailableException()
        Deprecated.
        Creates a new GuildUnavailableException instance
      • GuildUnavailableException

        public GuildUnavailableException​(java.lang.String reason)
        Deprecated.
        Creates a new GuildUnavailableException instance
        Parameters:
        reason - The reason for this Exception