org.violetlib.types
Class InvalidDataException
- Object
-
- Throwable
-
- Exception
-
- InvalidDataException
-
- All Implemented Interfaces:
- Serializable
public final class InvalidDataException extends ExceptionA generic exception for reporting invalid data to the user. It should not be used for failures, such as a database that contains unexpected invalid data.This exception must have a message, because the message is typically displayed to the user as an explanation of the problem. The exception class name is not normally displayed.
Any code that handles this exception should probably also handle
InvalidDataRuntimeException
.- See Also:
- Serialized Form
-
-
Static Methods Modifier and Type Static Method and Description create Create an invalid data exception with the specified message.create Create an invalid data exception with the specified message.
-