[jira] [Created] (MATH-566) Create "ExceptionContext" class

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (MATH-566) Create "ExceptionContext" class

ASF GitHub Bot (Jira)
Create "ExceptionContext" class
-------------------------------

                 Key: MATH-566
                 URL: https://issues.apache.org/jira/browse/MATH-566
             Project: Commons Math
          Issue Type: Task
            Reporter: Gilles
            Assignee: Gilles
            Priority: Minor
             Fix For: 3.0


The implementation of the customization of error messages will be moved from "MathRuntimeException" to a new "ExceptionContext" class.
Every exception class will implement an "ExceptionContextProvider" interface.
The purpose is to allow Commons Math exceptions to inherit from each of the Java standard exceptions (IAE, UOE, ISE, ...) while still provide the utility suggested by Jörg (borrowed from [Lang]).


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (MATH-566) Create "ExceptionContext" class

ASF GitHub Bot (Jira)

    [ https://issues.apache.org/jira/browse/MATH-566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13029304#comment-13029304 ]

Gilles commented on MATH-566:
-----------------------------

Class "ExceptionContext" committed in revision 1099771.
The "MathIllegalArgumentEXception" has been modified as suggested on the dev ML.
If that's OK, I'll change the other exception base classes ("MathArithmeticException", etc.) similarly.

When that's done, I think that "MathThrowable" and "MathRuntimeException" can be removed.


> Create "ExceptionContext" class
> -------------------------------
>
>                 Key: MATH-566
>                 URL: https://issues.apache.org/jira/browse/MATH-566
>             Project: Commons Math
>          Issue Type: Task
>            Reporter: Gilles
>            Assignee: Gilles
>            Priority: Minor
>             Fix For: 3.0
>
>
> The implementation of the customization of error messages will be moved from "MathRuntimeException" to a new "ExceptionContext" class.
> Every exception class will implement an "ExceptionContextProvider" interface.
> The purpose is to allow Commons Math exceptions to inherit from each of the Java standard exceptions (IAE, UOE, ISE, ...) while still provide the utility suggested by Jörg (borrowed from [Lang]).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (MATH-566) Create "ExceptionContext" class

ASF GitHub Bot (Jira)
In reply to this post by ASF GitHub Bot (Jira)

    [ https://issues.apache.org/jira/browse/MATH-566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13030740#comment-13030740 ]

Gilles commented on MATH-566:
-----------------------------

Remaining exception classes modified in revision 1101029.


> Create "ExceptionContext" class
> -------------------------------
>
>                 Key: MATH-566
>                 URL: https://issues.apache.org/jira/browse/MATH-566
>             Project: Commons Math
>          Issue Type: Task
>            Reporter: Gilles
>            Assignee: Gilles
>            Priority: Minor
>             Fix For: 3.0
>
>
> The implementation of the customization of error messages will be moved from "MathRuntimeException" to a new "ExceptionContext" class.
> Every exception class will implement an "ExceptionContextProvider" interface.
> The purpose is to allow Commons Math exceptions to inherit from each of the Java standard exceptions (IAE, UOE, ISE, ...) while still provide the utility suggested by Jörg (borrowed from [Lang]).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (MATH-566) Create "ExceptionContext" class

ASF GitHub Bot (Jira)
In reply to this post by ASF GitHub Bot (Jira)

    [ https://issues.apache.org/jira/browse/MATH-566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13064635#comment-13064635 ]

Gilles commented on MATH-566:
-----------------------------

Removed "MathRuntimeException" in revision 1146099.


> Create "ExceptionContext" class
> -------------------------------
>
>                 Key: MATH-566
>                 URL: https://issues.apache.org/jira/browse/MATH-566
>             Project: Commons Math
>          Issue Type: Task
>            Reporter: Gilles
>            Assignee: Gilles
>            Priority: Minor
>             Fix For: 3.0
>
>
> The implementation of the customization of error messages will be moved from "MathRuntimeException" to a new "ExceptionContext" class.
> Every exception class will implement an "ExceptionContextProvider" interface.
> The purpose is to allow Commons Math exceptions to inherit from each of the Java standard exceptions (IAE, UOE, ISE, ...) while still provide the utility suggested by Jörg (borrowed from [Lang]).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (MATH-566) Create "ExceptionContext" class

ASF GitHub Bot (Jira)
In reply to this post by ASF GitHub Bot (Jira)

    [ https://issues.apache.org/jira/browse/MATH-566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13100251#comment-13100251 ]

Gilles commented on MATH-566:
-----------------------------

Removed "MathThrowable" in revision 1166646.


> Create "ExceptionContext" class
> -------------------------------
>
>                 Key: MATH-566
>                 URL: https://issues.apache.org/jira/browse/MATH-566
>             Project: Commons Math
>          Issue Type: Task
>            Reporter: Gilles
>            Assignee: Gilles
>            Priority: Minor
>             Fix For: 3.0
>
>
> The implementation of the customization of error messages will be moved from "MathRuntimeException" to a new "ExceptionContext" class.
> Every exception class will implement an "ExceptionContextProvider" interface.
> The purpose is to allow Commons Math exceptions to inherit from each of the Java standard exceptions (IAE, UOE, ISE, ...) while still provide the utility suggested by Jörg (borrowed from [Lang]).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply | Threaded
Open this post in threaded view
|

[jira] [Resolved] (MATH-566) Create "ExceptionContext" class

ASF GitHub Bot (Jira)
In reply to this post by ASF GitHub Bot (Jira)

     [ https://issues.apache.org/jira/browse/MATH-566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gilles resolved MATH-566.
-------------------------

    Resolution: Fixed

> Create "ExceptionContext" class
> -------------------------------
>
>                 Key: MATH-566
>                 URL: https://issues.apache.org/jira/browse/MATH-566
>             Project: Commons Math
>          Issue Type: Task
>            Reporter: Gilles
>            Assignee: Gilles
>            Priority: Minor
>             Fix For: 3.0
>
>
> The implementation of the customization of error messages will be moved from "MathRuntimeException" to a new "ExceptionContext" class.
> Every exception class will implement an "ExceptionContextProvider" interface.
> The purpose is to allow Commons Math exceptions to inherit from each of the Java standard exceptions (IAE, UOE, ISE, ...) while still provide the utility suggested by Jörg (borrowed from [Lang]).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira