|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
at.dms.util.FormattedException
public class FormattedException
This class defines exceptions formatted using message descriptions.
| Constructor Summary | |
|---|---|
FormattedException(Message message)
An exception with a formatted message as argument |
|
FormattedException(MessageDescription description)
An exception without parameters |
|
FormattedException(MessageDescription description,
Object parameter)
An exception with one parameter |
|
FormattedException(MessageDescription description,
Object[] parameters)
An exception with an arbitrary number of parameters |
|
FormattedException(MessageDescription description,
Object parameter1,
Object parameter2)
An exception with two parameters |
|
| Method Summary | |
|---|---|
Message |
getFormattedMessage()
Returns the formatted message. |
String |
getMessage()
Returns a string explaining the exception. |
boolean |
hasDescription(MessageDescription description)
Returns true iff the error has specified description. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FormattedException(Message message)
message - the formatted message
public FormattedException(MessageDescription description,
Object[] parameters)
description - the message descriptionparameters - the array of parameters
public FormattedException(MessageDescription description,
Object parameter1,
Object parameter2)
description - the message descriptionparameter1 - the first parameterparameter2 - the second parameter
public FormattedException(MessageDescription description,
Object parameter)
description - the message descriptionparameter - the parameterpublic FormattedException(MessageDescription description)
description - the message description| Method Detail |
|---|
public String getMessage()
getMessage in class Throwablepublic Message getFormattedMessage()
public boolean hasDescription(MessageDescription description)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||