|
qflib 0.98.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--java.lang.RuntimeException | +--de.qfs.lib.command.RuntimeCommandException
A RuntimeCommandException is useful to pass RuntimeExceptions that were expected and can be handled up to the CommandDistributor, without having to declare it.
Otherwise the RuntimeCommandException has the same semantic as a MessageCommandException
except for an additional
nested exception that is the original source of the error.
Constructor Summary | |
RuntimeCommandException(java.lang.Exception nested)
Create a new RuntimeCommandException. |
|
RuntimeCommandException(java.lang.Exception nested,
java.lang.String message)
Create a new RuntimeCommandException. |
|
RuntimeCommandException(java.lang.Exception nested,
java.lang.String message,
java.lang.Object parent,
java.lang.String messageResource)
Create a new RuntimeCommandException. |
|
RuntimeCommandException(java.lang.Exception nested,
java.lang.String message,
java.lang.Object parent,
java.lang.String messageResource,
java.lang.Object[] parameters)
Create a new RuntimeCommandException. |
Method Summary | |
java.lang.Object[] |
getMessageParameters()
Get the messageParameters of the RuntimeCommandException. |
java.lang.String |
getMessageResource()
Get the messageResource of the RuntimeCommandException. |
java.lang.Exception |
getNested()
Get the original reason for the exception. |
java.lang.Object |
getParent()
Get the parent of the RuntimeCommandException. |
void |
setMessageParameters(java.lang.Object[] messageParameters)
Set the messageParameters for the RuntimeCommandException. |
void |
setMessageResource(java.lang.String messageResource)
Set the messageResource for the RuntimeCommandException. |
void |
setParent(java.lang.Object parent)
Set the target component for the message display. |
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 |
Constructor Detail |
public RuntimeCommandException(java.lang.Exception nested)
nested
- The original source of the error.public RuntimeCommandException(java.lang.Exception nested, java.lang.String message)
nested
- The original source of the error.message
- A message detailing the reason for the exception.public RuntimeCommandException(java.lang.Exception nested, java.lang.String message, java.lang.Object parent, java.lang.String messageResource)
nested
- The original source of the error.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.Message.showMessage(Component,String,Object[])
public RuntimeCommandException(java.lang.Exception nested, java.lang.String message, java.lang.Object parent, java.lang.String messageResource, java.lang.Object[] parameters)
nested
- The original source of the error.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.Message.showMessage(Component,String,Object[])
Method Detail |
public java.lang.Exception getNested()
public final java.lang.Object getParent()
public void setParent(java.lang.Object parent)
parent
- The new parent to set.public final java.lang.String getMessageResource()
public void setMessageResource(java.lang.String messageResource)
messageResource
- The new messageResource.public final java.lang.Object[] getMessageParameters()
public void setMessageParameters(java.lang.Object[] messageParameters)
messageParameters
- The new messageParameters.
|
qflib 0.98.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |