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

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

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 3.0
    • 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);
      

      Attachments

        Activity

          People

            erans Gilles Sadowski
            erans Gilles Sadowski
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: