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:
java.io.Serializable
public class InvalidDataException extends java.lang.UnsupportedOperationExceptionAn exception that occurs when aDataBuilderorDataFormatis unable to handle an operation, which can include:DataBuilder.build(DataView),DataFormat.readFrom(InputStream), etc.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InvalidDataException()Constructs a newInvalidDataException.InvalidDataException(java.lang.String message)Constructs a newInvalidDataExceptionwith a message.InvalidDataException(java.lang.String message, java.lang.Throwable cause)Constructs a newInvalidDataExceptionwith the specified message and cause.InvalidDataException(java.lang.Throwable cause)Constructs a newInvalidDataExceptionwith the specified cause and a null message.
-
-
-
Constructor Detail
-
InvalidDataException
public InvalidDataException()
Constructs a newInvalidDataException.
-
InvalidDataException
public InvalidDataException(java.lang.String message)
Constructs a newInvalidDataExceptionwith a message.- Parameters:
message- The message to display with the exception
-
InvalidDataException
public InvalidDataException(java.lang.String message, java.lang.Throwable cause)Constructs a newInvalidDataExceptionwith the specified message and cause.- Parameters:
message- The exception messagecause- The cause of this exception
-
InvalidDataException
public InvalidDataException(java.lang.Throwable cause)
Constructs a newInvalidDataExceptionwith the specified cause and a null message.- Parameters:
cause- The cause of this exception
-
-