com.sun.javatest.tool
public class Command.Fault extends java.lang.Exception
Constructor and Description |
---|
Command.Fault(CommandContext.Fault e)
Create a Fault, by wrapping a CommandContext Fault.
|
Command.Fault(I18NResourceBundle i18n,
java.lang.String s)
Create a Fault.
|
Command.Fault(I18NResourceBundle i18n,
java.lang.String s,
java.lang.Object o)
Create a Fault.
|
Command.Fault(I18NResourceBundle i18n,
java.lang.String s,
java.lang.Object[] o)
Create a Fault.
|
Modifier and Type | Method and Description |
---|---|
Command |
getCommand()
Get the command that created this fault.
|
public Command.Fault(I18NResourceBundle i18n, java.lang.String s)
i18n
- A resource bundle in which to find the detail message.s
- The key for the detail message.public Command.Fault(I18NResourceBundle i18n, java.lang.String s, java.lang.Object o)
i18n
- A resource bundle in which to find the detail message.s
- The key for the detail message.o
- An argument to be formatted with the detail message by
MessageFormat.format(java.lang.Object[], java.lang.StringBuffer, java.text.FieldPosition)
public Command.Fault(I18NResourceBundle i18n, java.lang.String s, java.lang.Object[] o)
i18n
- A resource bundle in which to find the detail message.s
- The key for the detail message.o
- An array of arguments to be formatted with the detail message by
MessageFormat.format(java.lang.Object[], java.lang.StringBuffer, java.text.FieldPosition)
public Command.Fault(CommandContext.Fault e)
e
- A CommandContext.Fault to wrap.public Command getCommand()
Copyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved.