Class InvalidContextError
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Error
-
- java.lang.AssertionError
-
- dev.aura.bungeechat.api.placeholder.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 Summary
Constructors Constructor Description InvalidContextError()
Equivalent to calling InvalidContextError("Context does not meet all requirements!")InvalidContextError(String message)
Constructs a new error to indicate that a certain assertion or requirement of anBungeeChatContext
failed.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
InvalidContextError
public InvalidContextError(String message)
Constructs a new error to indicate that a certain assertion or requirement of anBungeeChatContext
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)
-
-