de.qfs.lib.command
Class MessageCommandException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--de.qfs.lib.command.CommandException
|
+--de.qfs.lib.command.MessageCommandException
- All Implemented Interfaces:
- java.io.Serializable
- public class MessageCommandException
- extends CommandException
When a MessageCommandException is thrown during the exection of a Command
that has been assigned through a CommandDistributor
, it will be caught and a Dialog for the contained
message will be displayed through Message.showMessage
.
- Version:
- $Revision: 1.4 $
- Author:
- Gregor Schmid
- See Also:
- Serialized Form
Constructor Summary |
MessageCommandException(java.lang.String message,
java.awt.Component parent,
java.lang.String messageResource)
Create a new MessageCommandException. |
MessageCommandException(java.lang.String message,
java.awt.Component parent,
java.lang.String messageResource,
java.lang.Object[] parameters)
Create a new MessageCommandException. |
Method Summary |
java.lang.Object[] |
getMessageParameters()
Get the messageParameters of the MessageCommandException. |
java.lang.String |
getMessageResource()
Get the messageResource of the MessageCommandException. |
java.awt.Component |
getParent()
Get the parent of the MessageCommandException. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MessageCommandException
public MessageCommandException(java.lang.String message,
java.awt.Component parent,
java.lang.String messageResource)
- Create a new MessageCommandException.
- Parameters:
message
- A message detailing the reason for the exception.parent
- The parent Component for the dialog to display.messageResource
- The resource basename for the message dialog.- See Also:
Message.showMessage(Component,String,Object[])
MessageCommandException
public MessageCommandException(java.lang.String message,
java.awt.Component parent,
java.lang.String messageResource,
java.lang.Object[] parameters)
- Create a new MessageCommandException.
- Parameters:
message
- A message detailing the reason for the exception.parent
- The parent Component for the dialog to display.messageResource
- The resource basename for the message dialog.parameters
- The parameters for the message.- See Also:
Message.showMessage(Component,String,Object[])
getParent
public final java.awt.Component getParent()
- Get the parent of the MessageCommandException.
- Returns:
- The parent of the MessageCommandException.
getMessageResource
public final java.lang.String getMessageResource()
- Get the messageResource of the MessageCommandException.
- Returns:
- The messageResource of the MessageCommandException.
getMessageParameters
public final java.lang.Object[] getMessageParameters()
- Get the messageParameters of the MessageCommandException.
- Returns:
- The messageParameters of the MessageCommandException.