1 7 8 package java.util; 9 10 22 public class MissingFormatArgumentException extends IllegalFormatException { 23 24 private static final long serialVersionUID = 19190115L; 25 26 private String s; 27 28 35 public MissingFormatArgumentException(String s) { 36 if (s == null) 37 throw new NullPointerException (); 38 this.s = s; 39 } 40 41 46 public String getFormatSpecifier() { 47 return s; 48 } 49 50 public String getMessage() { 51 return "Format specifier '" + s + "'"; 52 } 53 } 54 | Popular Tags |