Package org.spongepowered.api.data
Class DataException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.spongepowered.api.data.DataException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DataAlreadyRegisteredException
,DataRegistrationNotFoundException
,DuplicateDataStoreException
,DuplicateProviderException
,UnregisteredKeyException
public class DataException extends RuntimeException
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DataException()
Constructs a new data exception.DataException(String message)
Constructs a new data exception with a message.DataException(String message, Throwable cause)
Constructs a new data exception with a message and throwable cause.DataException(Throwable cause)
Constructs a new data exception with a throwable cause.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
DataException
public DataException()
Constructs a new data exception.
-
DataException
public DataException(String message)
Constructs a new data exception with a message.- Parameters:
message
- The message
-
DataException
public DataException(String message, Throwable cause)
Constructs a new data exception with a message and throwable cause.- Parameters:
message
- The messagecause
- The cause
-
DataException
public DataException(Throwable cause)
Constructs a new data exception with a throwable cause.- Parameters:
cause
- The cause
-
-