Package net.kyori.adventure.key
Class InvalidKeyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
net.kyori.adventure.key.InvalidKeyException
- All Implemented Interfaces:
Serializable
public final class InvalidKeyException extends RuntimeException
This exception is thrown when an invalid namespace and/or value has been detected while creating a
Key
.- Since:
- 4.0.0
- See Also:
- Serialized Form
-
Method Summary
Modifier and Type Method Description @NonNull String
keyNamespace()
Gets the invalid key, as a string.@NonNull String
keyValue()
Gets the invalid key, as a string.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
keyNamespace
Gets the invalid key, as a string.- Returns:
- a key
- Since:
- 4.0.0
-
keyValue
Gets the invalid key, as a string.- Returns:
- a key
- Since:
- 4.0.0
-