Details
-
New Feature
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
Borrowing on the idea of "ExceptionContext" implemented in [Lang], "MathRuntimeException" (base class of all exceptions generated from CM) will be enhanced so that an unlimited number of (localized) messages can be added to an exception object.
The "MathThrowable" interface (implemented by "MathRuntimeException") will contain the following new method:
/** * Sets a message. * * @param pattern Message pattern. * @param arguments Values for replacing the placeholders in the message * pattern. */ public void addMessage(Localizable pattern, Object ... arguments);