Class InvalidContextError

  • All Implemented Interfaces:
    Serializable

    public class InvalidContextError
    extends AssertionError
    This exception is used to indicate that a passed context did not fulfill the requirements placed on it.
    It is advised that when throwing this exception to provide information on what exact requirements were not fulfilled as that simplifies debugging!
    See Also:
    Serialized Form
    • Constructor Detail

      • InvalidContextError

        public InvalidContextError​(String message)
        Constructs a new error to indicate that a certain assertion or requirement of an BungeeChatContext failed.
        Parameters:
        message - A message specifying what is wrong about the context, if possible
      • InvalidContextError

        public InvalidContextError()
        Equivalent to calling InvalidContextError("Context does not meet all requirements!")
        See Also:
        InvalidContextError(String)