java.util
public class: DuplicateFormatFlagsException [javadoc |
source]
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
java.util.IllegalFormatException
java.util.DuplicateFormatFlagsException
All Implemented Interfaces:
Serializable
Unchecked exception thrown when duplicate flags are provided in the format
specifier.
Unless otherwise specified, passing a null argument to any
method or constructor in this class will cause a NullPointerException to be thrown.
| Constructor: |
public DuplicateFormatFlagsException(String f) {
if (f == null)
throw new NullPointerException();
this.flags = f;
}
Constructs an instance of this class with the specified flags. Parameters:
f -
The set of format flags which contain a duplicate flag.
|
| Methods from java.lang.Throwable: |
|---|
|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods from java.lang.Object: |
|---|
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from java.util.DuplicateFormatFlagsException Detail: |
public String getFlags() {
return flags;
}
Returns the set of flags which contains a duplicate flag. |
public String getMessage() {
return String.format("Flags = '%s'", flags);
}
|