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 aKey
.- Since:
- 4.0.0
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull String
keyNamespace()
Gets the invalid key, as a string.@NotNull 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
-
-