Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 335663

Summary: [validation] Allow to create value converter exceptions for a text range
Product: [Modeling] TMF Reporter: Sebastian Zarnekow <sebastian.zarnekow>
Component: Xtext BacklogAssignee: Project Inbox <tmf.xtext-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3    
Version: 2.0.0   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Sebastian Zarnekow CLA 2011-01-28 04:42:09 EST
Consider the following string:

'this is a very long prefix \uInvalidEscape and a very long postfix'

The value converter should allow to mark the invalid escape sequence instead of the complete text.
Comment 1 Sebastian Zarnekow CLA 2012-04-02 16:17:21 EDT
There should be an additional constructor for the value converter exception that accepts a range (relative to the node). We probably need a subtype of SyntaxErrorMessage that refers to that range, too.