Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [Teneo] Change ExceptionMessage - StoreValidationException
[Teneo] Change ExceptionMessage - StoreValidationException [message #490138] Wed, 07 October 2009 13:38 Go to next message
Eclipse UserFriend
Originally posted by: kretschmer.e-mundo.de

Hi,

i am using emf, gmf, teneo for some editors.

When I save the editor i get an ErrorMessage where the complete Objectid
and Uri is shown like this:

org.eclipse.emf.teneo.StoreValidationException: Diagnosis of
domain.clmodel.impl.ModelTypeImpl@1ba4336{hbxml://?...}
The required feature 'propertyType' of
'domain.clmodel.impl.AttributeImpl@1d16300{hbxml://?...}' must be set

I know this message is thrown in the Teneo
StoreResource#validateContents() when at least one Object is in the
'diags' ArrayList. It then puts all Diagnostic Objects in it and their
messages are shown if I am right.

My Question now is:
Where is the (best) place to modify this messages?

greetings
Philipp
Re: [Teneo] Change ExceptionMessage - StoreValidationException [message #490223 is a reply to message #490138] Wed, 07 October 2009 22:14 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Philipp,
I am not sure where EMF gets these messages from (you need to debug). The StoreValidationException thrown by the
StoreResource#validateContents contains the Diagnostics created by the EMF validator. Maybe you can use info from the
diagnostic to create your own specific messages....

Maybe/Hopefully others on the newsgroup have more experience with custom diagnostic messages....

gr. Martin

Philipp Kretschmer wrote:
> Hi,
>
> i am using emf, gmf, teneo for some editors.
>
> When I save the editor i get an ErrorMessage where the complete Objectid
> and Uri is shown like this:
>
> org.eclipse.emf.teneo.StoreValidationException: Diagnosis of
> domain.clmodel.impl.ModelTypeImpl@1ba4336{hbxml://?...}
> The required feature 'propertyType' of
> 'domain.clmodel.impl.AttributeImpl@1d16300{hbxml://?...}' must be set
>
> I know this message is thrown in the Teneo
> StoreResource#validateContents() when at least one Object is in the
> 'diags' ArrayList. It then puts all Diagnostic Objects in it and their
> messages are shown if I am right.
>
> My Question now is:
> Where is the (best) place to modify this messages?
>
> greetings
> Philipp


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Previous Topic:OCL constraints attached to metamodel?
Next Topic:org.eclipse.emf.test.sdo missing (empty dirs) in CVS and SVN repos
Goto Forum:
  


Current Time: Thu Apr 25 16:42:37 GMT 2024

Powered by FUDForum. Page generated in 0.03177 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top