Module java.base
Package java.util

Class InvalidPropertiesFormatException

所有已实现的接口:
Serializable

public class InvalidPropertiesFormatException extends IOException
抛出以指示操作无法完成,因为输入不符合适用于属性集合的适当XML文档类型,根据Properties规范。

请注意,尽管InvalidPropertiesFormatException从Exception继承了Serializable接口,但它并不打算是可序列化的。已实现适当的序列化方法以抛出NotSerializableException。

自 JDK 版本:
1.5
参见:
  • Constructor Details

    • InvalidPropertiesFormatException

      public InvalidPropertiesFormatException(Throwable cause)
      使用指定的原因构造一个InvalidPropertiesFormatException。
      参数:
      cause - 原因(稍后可通过Throwable.getCause()方法检索)。
    • InvalidPropertiesFormatException

      public InvalidPropertiesFormatException(String message)
      使用指定的详细消息构造一个InvalidPropertiesFormatException。
      参数:
      message - 详细消息。详细消息将保存以便稍后通过Throwable.getMessage()方法检索。