You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Marc Prud'hommeaux (JIRA)" <ji...@apache.org> on 2007/03/21 01:16:32 UTC

[jira] Created: (OPENJPA-176) Exception prefixes should be human-readable

Exception prefixes should be human-readable
-------------------------------------------

                 Key: OPENJPA-176
                 URL: https://issues.apache.org/jira/browse/OPENJPA-176
             Project: OpenJPA
          Issue Type: Improvement
          Components: diagnostics
    Affects Versions: 0.9.6, 0.9.0
            Reporter: Marc Prud'hommeaux
            Priority: Trivial


OpenJPA prefixes all exception messages with a string of the form "<exception type|is fatal|version>", restulting in strings like "<4|false|0.9.6-incubating> org.apache.openjpa.persistence.PersistenceException". This isn't very useful to the casual observer, since no translation of the meaning of the fields is done.

it would be nice if we translated the fatal and type parameters, so that the string looked like "<user-error|recoverable|0.9.6-incubating>".


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OPENJPA-176) Exception prefixes should be human-readable

Posted by "Michael Dick (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-176?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12483852 ] 

Michael Dick commented on OPENJPA-176:
--------------------------------------

It looks like we just use type + " error" if the type isn't recognized. 

+1 as it is, but I'm not opposed to changing type + " error" to "unexpected error" or something similar. 

> Exception prefixes should be human-readable
> -------------------------------------------
>
>                 Key: OPENJPA-176
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-176
>             Project: OpenJPA
>          Issue Type: Improvement
>          Components: diagnostics
>    Affects Versions: 0.9.0, 0.9.6
>            Reporter: Marc Prud'hommeaux
>         Assigned To: Marc Prud'hommeaux
>            Priority: Trivial
>         Attachments: OPENJPA-176.patch
>
>
> OpenJPA prefixes all exception messages with a string of the form "<exception type|is fatal|version>", restulting in strings like "<4|false|0.9.6-incubating> org.apache.openjpa.persistence.PersistenceException". This isn't very useful to the casual observer, since no translation of the meaning of the fields is done.
> it would be nice if we translated the fatal and type parameters, so that the string looked like "<user-error|recoverable|0.9.6-incubating>".

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OPENJPA-176) Exception prefixes should be human-readable

Posted by "Craig Russell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-176?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12483850 ] 

Craig Russell commented on OPENJPA-176:
---------------------------------------

I like it. 

What if the type is not one of the expected types? Perhaps we want to identify this case? Such as "unexpected error" or something.


> Exception prefixes should be human-readable
> -------------------------------------------
>
>                 Key: OPENJPA-176
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-176
>             Project: OpenJPA
>          Issue Type: Improvement
>          Components: diagnostics
>    Affects Versions: 0.9.0, 0.9.6
>            Reporter: Marc Prud'hommeaux
>         Assigned To: Marc Prud'hommeaux
>            Priority: Trivial
>         Attachments: OPENJPA-176.patch
>
>
> OpenJPA prefixes all exception messages with a string of the form "<exception type|is fatal|version>", restulting in strings like "<4|false|0.9.6-incubating> org.apache.openjpa.persistence.PersistenceException". This isn't very useful to the casual observer, since no translation of the meaning of the fields is done.
> it would be nice if we translated the fatal and type parameters, so that the string looked like "<user-error|recoverable|0.9.6-incubating>".

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (OPENJPA-176) Exception prefixes should be human-readable

Posted by "Marc Prud'hommeaux (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-176?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marc Prud'hommeaux resolved OPENJPA-176.
----------------------------------------

       Resolution: Fixed
    Fix Version/s: 0.9.7

Implemented patch.

> Exception prefixes should be human-readable
> -------------------------------------------
>
>                 Key: OPENJPA-176
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-176
>             Project: OpenJPA
>          Issue Type: Improvement
>          Components: diagnostics
>    Affects Versions: 0.9.0, 0.9.6
>            Reporter: Marc Prud'hommeaux
>         Assigned To: Marc Prud'hommeaux
>            Priority: Trivial
>             Fix For: 0.9.7
>
>         Attachments: OPENJPA-176.patch
>
>
> OpenJPA prefixes all exception messages with a string of the form "<exception type|is fatal|version>", restulting in strings like "<4|false|0.9.6-incubating> org.apache.openjpa.persistence.PersistenceException". This isn't very useful to the casual observer, since no translation of the meaning of the fields is done.
> it would be nice if we translated the fatal and type parameters, so that the string looked like "<user-error|recoverable|0.9.6-incubating>".

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (OPENJPA-176) Exception prefixes should be human-readable

Posted by "Marc Prud'hommeaux (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-176?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marc Prud'hommeaux reassigned OPENJPA-176:
------------------------------------------

    Assignee: Marc Prud'hommeaux

> Exception prefixes should be human-readable
> -------------------------------------------
>
>                 Key: OPENJPA-176
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-176
>             Project: OpenJPA
>          Issue Type: Improvement
>          Components: diagnostics
>    Affects Versions: 0.9.0, 0.9.6
>            Reporter: Marc Prud'hommeaux
>         Assigned To: Marc Prud'hommeaux
>            Priority: Trivial
>         Attachments: OPENJPA-176.patch
>
>
> OpenJPA prefixes all exception messages with a string of the form "<exception type|is fatal|version>", restulting in strings like "<4|false|0.9.6-incubating> org.apache.openjpa.persistence.PersistenceException". This isn't very useful to the casual observer, since no translation of the meaning of the fields is done.
> it would be nice if we translated the fatal and type parameters, so that the string looked like "<user-error|recoverable|0.9.6-incubating>".

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (OPENJPA-176) Exception prefixes should be human-readable

Posted by "Marc Prud'hommeaux (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-176?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marc Prud'hommeaux updated OPENJPA-176:
---------------------------------------

    Attachment: OPENJPA-176.patch

The attached patch will change the prefix to look like, for example: "<0.9.6-incubating fatal user error> org.apache.openjpa.persistence.PersistenceException".

Any objections?

> Exception prefixes should be human-readable
> -------------------------------------------
>
>                 Key: OPENJPA-176
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-176
>             Project: OpenJPA
>          Issue Type: Improvement
>          Components: diagnostics
>    Affects Versions: 0.9.0, 0.9.6
>            Reporter: Marc Prud'hommeaux
>            Priority: Trivial
>         Attachments: OPENJPA-176.patch
>
>
> OpenJPA prefixes all exception messages with a string of the form "<exception type|is fatal|version>", restulting in strings like "<4|false|0.9.6-incubating> org.apache.openjpa.persistence.PersistenceException". This isn't very useful to the casual observer, since no translation of the meaning of the fields is done.
> it would be nice if we translated the fatal and type parameters, so that the string looked like "<user-error|recoverable|0.9.6-incubating>".

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.