DataFormatException

  • DataFormatException signals that an error has occurred in the format of data being processed.

  • It is a subclass of Exception and provides two constructors: one with no detail message and one with a specified message describing the error.

  • DataFormatException inherits methods from Throwable for handling exceptions, such as getting the stack trace and setting the cause of the exception.

public class DataFormatException extends Exception

Signals that a data format error has occurred.

Public Constructor Summary

DataFormatException()
Constructs a DataFormatException with no detail message.
DataFormatException(String s)
Constructs a DataFormatException with the specified detail message.

Inherited Method Summary

Public Constructors

public DataFormatException ()

Constructs a DataFormatException with no detail message.

public DataFormatException (String s)

Constructs a DataFormatException with the specified detail message. A detail message is a String that describes this particular exception.

Parameters
s the String containing a detail message