1 7 8 package java.util; 9 10 20 public class FormatFlagsConversionMismatchException 21 extends IllegalFormatException  22 { 23 private static final long serialVersionUID = 19120414L; 24 25 private String f; 26 27 private char c; 28 29 39 public FormatFlagsConversionMismatchException(String f, char c) { 40 if (f == null) 41 throw new NullPointerException (); 42 this.f = f; 43 this.c = c; 44 } 45 46 51 public String getFlags() { 52 return f; 53 } 54 55 60 public char getConversion() { 61 return c; 62 } 63 64 public String getMessage() { 65 return "Conversion = " + c + ", Flags = " + f; 66 } 67 } 68 | Popular Tags |