Package com.sun.javatest.tool
Class Main.Fault
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.sun.javatest.tool.Main.Fault
- All Implemented Interfaces:
Serializable
- Enclosing class:
Main
Thrown when a bad command line argument is encountered.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFault
(I18NResourceBundle i18n, String key) Create a BadArgs exception.Fault
(I18NResourceBundle i18n, String key, Object arg) Create a BadArgs exception.Fault
(I18NResourceBundle i18n, String key, Object... args) Create a BadArgs exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
Fault
Create a BadArgs exception.- Parameters:
i18n
- A resource bundle in which to find the detail message.key
- The key for the detail message.
-
Fault
Create a BadArgs exception.- Parameters:
i18n
- A resource bundle in which to find the detail message.key
- The key for the detail message.arg
- An argument to be formatted with the detail message byMessageFormat.format(java.lang.Object[], java.lang.StringBuffer, java.text.FieldPosition)
-
Fault
Create a BadArgs exception.- Parameters:
i18n
- A resource bundle in which to find the detail message.key
- The key for the detail message.args
- An array of arguments to be formatted with the detail message byMessageFormat.format(java.lang.Object[], java.lang.StringBuffer, java.text.FieldPosition)
-