You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Boris Kolpackov (JIRA)" <xe...@xml.apache.org> on 2009/11/03 09:51:59 UTC

[jira] Closed: (XERCESC-634) Error messages are not user friendly

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

Boris Kolpackov closed XERCESC-634.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0.0
         Assignee:     (was: Xerces-C Developers Mailing List)

Error messages has been significantly rewritten for the 3-series.

> Error messages are not user friendly
> ------------------------------------
>
>                 Key: XERCESC-634
>                 URL: https://issues.apache.org/jira/browse/XERCESC-634
>             Project: Xerces-C++
>          Issue Type: Bug
>          Components: Miscellaneous
>    Affects Versions: 2.1.0
>         Environment: Operating System: All
> Platform: All
>            Reporter: Peter A. Volchek
>             Fix For: 3.0.0
>
>
> From: XMLMsgCat_EN_US.Msg
>   7  An exception occurred! Type:{0}, Message:{1}
> 156  An exception occurred! Type:{0}, Message:{1}
> 284  An exception occurred! Type:{0}, Message:{1}
> 285  Unexpected end of file exception. Message: {0}
>  45  Datatype error: Type:{0}, Message:{1}.
>  46  Schema error: Type:{0}, Message:{1}
> These message are not user friendly.
> For example I got the following exception:
> An exception occurred! Type:RuntimeException, Message:The primary document entit
> y could not be opened. Id=E:\team\review\send\020901\NAG\NagMsg_DTD ( line 0, 
> char 0 )
> The first part of the exception "An exception occurred! Type:RuntimeException, 
> Message:" is absolutely informative. Better state smth like: 
> "Parsing exception: The primary document entity could not be opened..."
> So, the proposal is:
> 1. Remove all informative text, like "An exception occurred!"
> 2. Remove template words, like Type: and Message:
> 3. Provide meaningfull error message
> As an example compare the following error templates. I think that the second is 
> better.
>  46  Schema error: Type:{0}, Message:{1}
>  46  Schema error: {1}

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


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org