[jira] Created: (VELOCITY-738) It would be useful to know that the error is occurred in which context.

View: New views
3 Messages — Rating Filter:   Alert me  

[jira] Created: (VELOCITY-738) It would be useful to know that the error is occurred in which context.

by Velocity - Dev mailing list-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It would be useful to know that the error is occurred in which context.
-----------------------------------------------------------------------

                 Key: VELOCITY-738
                 URL: https://issues.apache.org/jira/browse/VELOCITY-738
             Project: Velocity
          Issue Type: Improvement
          Components: Engine
    Affects Versions: 1.6.2
            Reporter: Siri C.


It would be better, if an error message display surroundings of the place where the error is.
For example:
To display that an "(" character is illegal (there are hundreds of those characters in a template)
but it would be useful to know that this character occurred in the context "product.getName()".

--
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: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...


[jira] Commented: (VELOCITY-738) It would be useful to know that the error is occurred in which context.

by Velocity - Dev mailing list-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ https://issues.apache.org/jira/browse/VELOCITY-738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12766495#action_12766495 ]

Pakornpong Pothipruk commented on VELOCITY-738:
-----------------------------------------------

When I use Velocity on an RTF document, I would like Velocity to also tell me that the exception (e.g. one above) occurs on which line of my RTF document. Is that possible with the current engine?

> It would be useful to know that the error is occurred in which context.
> -----------------------------------------------------------------------
>
>                 Key: VELOCITY-738
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-738
>             Project: Velocity
>          Issue Type: Improvement
>          Components: Engine
>    Affects Versions: 1.6.2
>            Reporter: Siri C.
>
> It would be better, if an error message display surroundings of the place where the error is.
> For example:
> To display that an "(" character is illegal (there are hundreds of those characters in a template)
> but it would be useful to know that this character occurred in the context "product.getName()".

--
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: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...


[jira] Resolved: (VELOCITY-738) It would be useful to know that the error is occurred in which context.

by Velocity - Dev mailing list-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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

Will Glass-Husain resolved VELOCITY-738.
----------------------------------------

    Resolution: Won't Fix

If you catch the ParseException, it contains properties for the template name, line, and column number,

> It would be useful to know that the error is occurred in which context.
> -----------------------------------------------------------------------
>
>                 Key: VELOCITY-738
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-738
>             Project: Velocity
>          Issue Type: Improvement
>          Components: Engine
>    Affects Versions: 1.6.2
>            Reporter: Siri C.
>
> It would be better, if an error message display surroundings of the place where the error is.
> For example:
> To display that an "(" character is illegal (there are hundreds of those characters in a template)
> but it would be useful to know that this character occurred in the context "product.getName()".

--
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: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...