Package java.util

Examples of java.util.IllegalFormatFlagsException


      throw new IllegalFormatPrecisionException(precision);
    switch (c) {
    case Conversion.PERCENT_SIGN:
      if (f.valueOf() != Flags.LEFT_JUSTIFY.valueOf()
          && f.valueOf() != Flags.NONE.valueOf())
        throw new IllegalFormatFlagsException(f.toString());
      // '-' requires a width
      if (width == -1 && f.contains(Flags.LEFT_JUSTIFY))
        throw new MissingFormatWidthException(toString());
      break;
    case Conversion.LINE_SEPARATOR:
      if (width != -1)
        throw new IllegalFormatWidthException(width);
      if (f.valueOf() != Flags.NONE.valueOf())
        throw new IllegalFormatFlagsException(f.toString());
      break;
    default:
            throw new UnknownFormatConversionException(String.valueOf(c));
    }
  }
View Full Code Here

TOP

Related Classes of java.util.IllegalFormatFlagsException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.