Package org.spongepowered.api.data
Class DataRegistrationNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.spongepowered.api.data.DataException
org.spongepowered.api.data.DataRegistrationNotFoundException
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
ConstructorDescriptionConstructs a basic data registration not found exception.DataRegistrationNotFoundException
(String registrationQuery) Constructs a data registration not found exception with a specified registration query, which will be used as the message.DataRegistrationNotFoundException
(String message, @Nullable String registrationQuery) Constructs a data registration not found exception with a specified message and registration query. -
Method Summary
Modifier and TypeMethodDescriptionGets the specified registration query, if present.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DataRegistrationNotFoundException
public DataRegistrationNotFoundException()Constructs a basic data registration not found exception. -
DataRegistrationNotFoundException
Constructs a data registration not found exception with a specified registration query, which will be used as the message.- Parameters:
registrationQuery
- The registration query
-
DataRegistrationNotFoundException
Constructs a data registration not found exception with a specified message and registration query.- Parameters:
message
- The messageregistrationQuery
- The registration query
-
-
Method Details
-
registrationQuery
Gets the specified registration query, if present.- Returns:
- The registration query, if present
-