Uploaded image for project: 'Commons Math'
  1. Commons Math
  2. MATH-542

Allow the addition of multiple messages to the exceptions generated by CM

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0
    • Labels:

      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);
      

        Attachments

          Activity

            People

            • Assignee:
              erans Gilles
              Reporter:
              erans Gilles
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: