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
public class InvalidDataException extends 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(String message)
Constructs a newInvalidDataException
with a message.InvalidDataException(String message, Throwable cause)
Constructs a newInvalidDataException
with the specified message and cause.InvalidDataException(Throwable cause)
Constructs a newInvalidDataException
with 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 Detail
-
InvalidDataException
public InvalidDataException()
Constructs a newInvalidDataException
.
-
InvalidDataException
public InvalidDataException(String message)
Constructs a newInvalidDataException
with a message.- Parameters:
message
- The message to display with the exception
-
InvalidDataException
public InvalidDataException(String message, Throwable cause)
Constructs a newInvalidDataException
with the specified message and cause.- Parameters:
message
- The exception messagecause
- The cause of this exception
-
InvalidDataException
public InvalidDataException(Throwable cause)
Constructs a newInvalidDataException
with the specified cause and a null message.- Parameters:
cause
- The cause of this exception
-
-