Class InvalidDataException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.UnsupportedOperationException
org.spongepowered.api.data.persistence.InvalidDataException
- All Implemented Interfaces:
Serializable
An exception that occurs when a
DataBuilder or
DataFormat is unable to handle an operation, which can include:
DataBuilder.build(DataView), DataFormat.readFrom(InputStream),
etc.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newInvalidDataException.InvalidDataException(String message) Constructs a newInvalidDataExceptionwith a message.InvalidDataException(String message, Throwable cause) Constructs a newInvalidDataExceptionwith the specified message and cause.InvalidDataException(Throwable cause) Constructs a newInvalidDataExceptionwith the specified cause and a null message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidDataException
public InvalidDataException()Constructs a newInvalidDataException. -
InvalidDataException
Constructs a newInvalidDataExceptionwith a message.- Parameters:
message- The message to display with the exception
-
InvalidDataException
Constructs a newInvalidDataExceptionwith the specified message and cause.- Parameters:
message- The exception messagecause- The cause of this exception
-
InvalidDataException
Constructs a newInvalidDataExceptionwith the specified cause and a null message.- Parameters:
cause- The cause of this exception
-