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:
java.io.Serializable
public final class InvalidKeyException extends java.lang.RuntimeException
This exception is thrown when an invalid namespace and/or value has been detected while creating aKey
.- Since:
- 4.0.0
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull java.lang.String
keyNamespace()
Gets the invalid key, as a string.@NotNull java.lang.String
keyValue()
Gets the invalid key, as a string.
-