|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.multijava.util.FormattedException
This class defines exceptions formatted using message descriptions.
| Field Summary | |
private Message |
message
|
| Fields inherited from class java.lang.Exception |
|
| Fields inherited from class java.lang.Throwable |
|
| Constructor Summary | |
FormattedException(String msg)
|
|
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 parameter1,
Object parameter2)
An exception with two parameters |
|
FormattedException(MessageDescription description,
Object[] parameters)
An exception with an arbitrary number of parameters |
|
| Method Summary | |
String |
getErrorMessage()
Returns the string explaining the exception. |
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 |
| Field Detail |
private final transient Message message
| 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 descriptionpublic FormattedException(String msg)
| Method Detail |
public String getMessage()
getMessage in class Throwablepublic Message getFormattedMessage()
public String getErrorMessage()
public boolean hasDescription(MessageDescription description)
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||