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.UnsupportedOperationException
An exception that occurs when aDataBuilder
orDataFormat
is 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 newInvalidDataException
with a message.InvalidDataException(java.lang.String message, java.lang.Throwable cause)
Constructs a newInvalidDataException
with the specified message and cause.InvalidDataException(java.lang.Throwable cause)
Constructs a newInvalidDataException
with the specified cause and a null message.
-
-
-
Constructor Detail
-
InvalidDataException
public InvalidDataException()
Constructs a newInvalidDataException
.
-
InvalidDataException
public InvalidDataException(java.lang.String message)
Constructs a newInvalidDataException
with a message.- Parameters:
message
- The message to display with the exception
-
InvalidDataException
public InvalidDataException(java.lang.String message, java.lang.Throwable cause)
Constructs a newInvalidDataException
with the specified message and cause.- Parameters:
message
- The exception messagecause
- The cause of this exception
-
InvalidDataException
public InvalidDataException(java.lang.Throwable cause)
Constructs a newInvalidDataException
with the specified cause and a null message.- Parameters:
cause
- The cause of this exception
-
-