FileDocCategorySizeDatePackage
DuplicateFormatFlagsException.javaAPI DocAndroid 1.5 API2196Wed May 06 22:41:04 BST 2009java.util

DuplicateFormatFlagsException

public class DuplicateFormatFlagsException extends IllegalFormatException
The unchecked exception will be thrown out if there are duplicate flags given out in the format specifier.
see
java.lang.RuntimeException
since
Android 1.0

Fields Summary
private static final long
serialVersionUID
private String
flags
Constructors Summary
public DuplicateFormatFlagsException(String f)
Constructs a new {@code DuplicateFormatFlagsException} with the flags containing duplicates.

param
f the format flags that contain a duplicate flag.


                                        
       
        if (null == f) {
            throw new NullPointerException();
        }
        flags = f;
    
Methods Summary
public java.lang.StringgetFlags()
Returns the format flags that contain a duplicate flag.

return
the format flags that contain a duplicate flag.

        return flags;
    
public java.lang.StringgetMessage()
Returns the message string of the DuplicateFormatFlagsException.

return
the message string of the DuplicateFormatFlagsException.

        StringBuilder buffer = new StringBuilder();
        buffer.append("Flags of the DuplicateFormatFlagsException is'");
        buffer.append(flags);
        buffer.append("'");
        return buffer.toString();