- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.IllegalArgumentException
-
- java.util.IllegalFormatException
-
- java.util.IllegalFormatFlagsException
-
- All Implemented Interfaces:
-
Serializable
public class IllegalFormatFlagsException extends IllegalFormatException
提供非法组合标志时抛出未检查的异常。除非另有说明,否则传递
null参数到null中的任何方法或构造函数将导致抛出NullPointerException。- 从以下版本开始:
- 1.5
- 另请参见:
- Serialized Form
-
-
构造方法摘要
构造方法 Constructor 描述 IllegalFormatFlagsException(String f)使用指定的标志构造此类的实例。
-
方法摘要
所有方法 接口方法 具体的方法 Modifier and Type 方法 描述 StringgetFlags()返回包含非法组合的标志集。StringgetMessage()返回此throwable的详细消息字符串。-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
构造方法详细信息
-
IllegalFormatFlagsException
public IllegalFormatFlagsException(String f)
使用指定的标志构造此类的实例。- 参数
-
f- 包含非法组合的格式标志集
-
-
方法详细信息
-
getFlags
public String getFlags()
返回包含非法组合的标志集。- 结果
- 旗帜
-
getMessage
public String getMessage()
描述从类别复制:Throwable返回此throwable的详细消息字符串。- 重写:
-
getMessage在Throwable - 结果
-
该
Throwable实例的详细消息字符串(可能为null)。
-
-