InvalidPropertiesFormatException

  • InvalidPropertiesFormatException signals that input doesn't adhere to the expected XML structure for Java Properties.

  • This exception is thrown during operations involving the java.util.Properties class when data is improperly formatted.

  • While inheriting from IOException, InvalidPropertiesFormatException is not intended to be serialized and will throw NotSerializableException if serialization is attempted.

  • It provides constructors to specify a detailed message or a cause for the exception.

public class InvalidPropertiesFormatException extends IOException

Thrown to indicate that an operation could not complete because the input did not conform to the appropriate XML document type for a collection of properties, as per the Properties specification.

Note, that although InvalidPropertiesFormatException inherits Serializable interface from Exception, it is not intended to be Serializable. Appropriate serialization methods are implemented to throw NotSerializableException.

See Also

Public Constructor Summary

InvalidPropertiesFormatException(Throwable cause)
Constructs an InvalidPropertiesFormatException with the specified cause.
InvalidPropertiesFormatException(String message)
Constructs an InvalidPropertiesFormatException with the specified detail message.

Inherited Method Summary

Public Constructors

public InvalidPropertiesFormatException (Throwable cause)

Constructs an InvalidPropertiesFormatException with the specified cause.

Parameters
cause the cause (which is saved for later retrieval by the Throwable.getCause() method).

public InvalidPropertiesFormatException (String message)

Constructs an InvalidPropertiesFormatException with the specified detail message.

Parameters
message the detail message. The detail message is saved for later retrieval by the Throwable.getMessage() method.