FileDocCategorySizeDatePackage
FormatFlagsConversionMismatchException.javaAPI DocAndroid 1.5 API2517Wed May 06 22:41:04 BST 2009java.util

FormatFlagsConversionMismatchException

public class FormatFlagsConversionMismatchException extends IllegalFormatException implements Serializable
A {@code FormatFlagsConversionMismatchException} will be thrown if a conversion and the flags are incompatible.
see
java.lang.RuntimeException
since
Android 1.0

Fields Summary
private static final long
serialVersionUID
private String
f
private char
c
Constructors Summary
public FormatFlagsConversionMismatchException(String f, char c)
Constructs a new {@code FormatFlagsConversionMismatchException} with the flags and conversion specified.

param
f the flags.
param
c the conversion.


                                                 
         
        if (null == f) {
            throw new NullPointerException();
        }
        this.f = f;
        this.c = c;
    
Methods Summary
public chargetConversion()
Returns the incompatible conversion.

return
the incompatible conversion.

        return c;
    
public java.lang.StringgetFlags()
Returns the incompatible format flag.

return
the incompatible format flag.

        return f;
    
public java.lang.StringgetMessage()
Returns the message string of the {@code FormatFlagsConversionMismatchException}.

return
the message string of the {@code FormatFlagsConversionMismatchException}.

        StringBuilder buffer = new StringBuilder();
        buffer.append("Mismatched Convertor =");
        buffer.append(c);
        buffer.append(", Flags= ");
        buffer.append(f);
        return buffer.toString();