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
public class DataRegistrationNotFoundException extends DataException
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DataRegistrationNotFoundException()
Constructs 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<String>
registrationQuery()
Gets 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 Detail
-
DataRegistrationNotFoundException
public DataRegistrationNotFoundException()
Constructs a basic data registration not found exception.
-
DataRegistrationNotFoundException
public DataRegistrationNotFoundException(String registrationQuery)
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
public DataRegistrationNotFoundException(String message, @Nullable String registrationQuery)
Constructs a data registration not found exception with a specified message and registration query.- Parameters:
message
- The messageregistrationQuery
- The registration query
-
-