Skip to main content
summaryrefslogtreecommitdiffstats
blob: 157a6d6a1df7379575250a6cbdc120a20f88c1da (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*******************************************************************************
 * Copyright (c) 2013, 2016 Willink Transformations and others.
 * All rights reserved.   This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *   E.D.Willink - Initial API and implementation
 *******************************************************************************/
package org.eclipse.qvtd.runtime.evaluation;

import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.ocl.pivot.values.InvalidValueException;

/**
 * An InvocationFailedException is thrown when a Mapping invocation fails as a result of an attempt to
 * access a Property before its value has been assigned. The InvocationManager should catch the exception
 * and mark the invocation for a retry once the Property has been assigned.
 */
@SuppressWarnings("serial")
public class InvocationFailedException extends InvalidValueException
{
	public final @NonNull SlotState slotState;

	public InvocationFailedException(@NonNull SlotState slotState) {
		super("not-ready");
		this.slotState = slotState;
	}

	@Override
	public String toString() {
		return slotState.toString();
	}
}

Back to the top