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:
java.io.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(java.lang.String registrationQuery)
Constructs a data registration not found exception with a specified registration query, which will be used as the message.DataRegistrationNotFoundException(java.lang.String message, @Nullable java.lang.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 java.util.Optional<java.lang.String>
registrationQuery()
Gets the specified registration query, if present.
-
-
-
Constructor Detail
-
DataRegistrationNotFoundException
public DataRegistrationNotFoundException()
Constructs a basic data registration not found exception.
-
DataRegistrationNotFoundException
public DataRegistrationNotFoundException(java.lang.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(java.lang.String message, @Nullable java.lang.String registrationQuery)
Constructs a data registration not found exception with a specified message and registration query.- Parameters:
message
- The messageregistrationQuery
- The registration query
-
-