54 * This exception is used to indicate a problem with the command line arguments.
55 */
56 public static class BadArgs extends Exception
57 {
58 /**
59 * Create a BadArgs exception.
60 * @param i18n A resource bundle in which to find the detail message.
61 * @param s The key for the detail message.
62 */
63 BadArgs(ResourceBundle i18n, String s) {
64 super(i18n.getString(s));
65 }
66
67 /**
68 * Create a BadArgs exception.
69 * @param i18n A resource bundle in which to find the detail message.
70 * @param s The key for the detail message.
71 * @param o An argument to be formatted with the detail message by
72 * {@link java.text.MessageFormat#format}
73 */ BadArgs(ResourceBundle i18n, String s, Object o) {
74 super(MessageFormat.format(i18n.getString(s), new Object[] {o}));
75 }
76
77
78 /**
79 * Create a BadArgs exception.
80 * @param i18n A resource bundle in which to find the detail message.
81 * @param s The key for the detail message.
82 * @param o An array of arguments to be formatted with the detail message by
83 * {@link java.text.MessageFormat#format}
84 */
85 BadArgs(ResourceBundle i18n, String s, Object[] o) {
86 super(MessageFormat.format(i18n.getString(s), o));
87 }
88 }
89
90 /**
91 * This exception is used to report problems that arise when using this API.
92 */
93 public static class Fault extends Exception
94 {
|
54 * This exception is used to indicate a problem with the command line arguments.
55 */
56 public static class BadArgs extends Exception
57 {
58 /**
59 * Create a BadArgs exception.
60 * @param i18n A resource bundle in which to find the detail message.
61 * @param s The key for the detail message.
62 */
63 BadArgs(ResourceBundle i18n, String s) {
64 super(i18n.getString(s));
65 }
66
67 /**
68 * Create a BadArgs exception.
69 * @param i18n A resource bundle in which to find the detail message.
70 * @param s The key for the detail message.
71 * @param o An argument to be formatted with the detail message by
72 * {@link java.text.MessageFormat#format}
73 */ BadArgs(ResourceBundle i18n, String s, Object o) {
74 super(MessageFormat.format(i18n.getString(s), o));
75 }
76
77
78 /**
79 * Create a BadArgs exception.
80 * @param i18n A resource bundle in which to find the detail message.
81 * @param s The key for the detail message.
82 * @param o An array of arguments to be formatted with the detail message by
83 * {@link java.text.MessageFormat#format}
84 */
85 BadArgs(ResourceBundle i18n, String s, Object[] o) {
86 super(MessageFormat.format(i18n.getString(s), o));
87 }
88 }
89
90 /**
91 * This exception is used to report problems that arise when using this API.
92 */
93 public static class Fault extends Exception
94 {
|