Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [qvtd-dev] [Dev] Navigation attributes with null values

Hi

Yes for now. If you find that you are needing to handle 'invalid' in many places, we might try to avoid the exceptions, but for now exceptions are easiest.

    Regards

        Ed Willink

On 01/08/2013 13:34, Horacio Hoyos Rodriguez wrote:

Hi Ed,

 

Yes, that is the exception I am getting. So just catch it and deal with it appropriately?

 

Regards,

 

 

Horacio Hoyos Rodríguez

EngD Student

University of York

 

http://www.york.ac.uk/docs/disclaimer/email.htm

 

From: qvtd-dev-bounces@xxxxxxxxxxx [mailto:qvtd-dev-bounces@xxxxxxxxxxx] On Behalf Of Ed Willink
Sent: 01 August 2013 13:14
To: QVTD developers mailing list
Subject: Re: [qvtd-dev] [Dev] Navigation attributes with null values

 

Hi

The exception should be InvalidValueException which is the way invalid is generally 'passed'.

    Regards

        Ed

On 01/08/2013 12:31, Horacio Hoyos Rodriguez wrote:

Hi Ed,

 

What is the correct way to evaluate:

 

c2t.fromAttributes.leafs;

 

if fromAttributes value is null?

 

Currently OCL throws an exception: 'NavigableObject' rather than 'OclVoid' value required.

 

I think it should return invalid so the QVT engine can deal with it, i.e. the binding is not valid then don’t invoke the mapping.

 

Regards,

 

 

Horacio Hoyos Rodríguez

EngD Student

University of York

 

http://www.york.ac.uk/docs/disclaimer/email.htm

 




_______________________________________________
qvtd-dev mailing list
qvtd-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/qvtd-dev




No virus found in this message.
Checked by AVG - www.avg.com
Version: 2013.0.3392 / Virus Database: 3209/6541 - Release Date: 07/31/13

 



_______________________________________________
qvtd-dev mailing list
qvtd-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/qvtd-dev


No virus found in this message.
Checked by AVG - www.avg.com
Version: 2013.0.3392 / Virus Database: 3209/6541 - Release Date: 07/31/13



Back to the top