diff options
author | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2010-03-04 11:01:36 +0000 |
---|---|---|
committer | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2010-03-04 11:01:36 +0000 |
commit | 18627df0f6bb93424b99cbe90daf5a466c4ebaf7 (patch) | |
tree | d5a29a300a405c6dd2e44804c44387c4d8fd826d /sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany | |
parent | 64dee3e1fd77da265adf4feb83c9928e88c20bb2 (diff) |
improve the operation not found error message
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@918931 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany')
-rw-r--r-- | sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/impl/InterfaceContractMapperImpl.java | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/impl/InterfaceContractMapperImpl.java b/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/impl/InterfaceContractMapperImpl.java index 5c561b2ddf..468083c839 100644 --- a/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/impl/InterfaceContractMapperImpl.java +++ b/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/interfacedef/impl/InterfaceContractMapperImpl.java @@ -259,7 +259,11 @@ public class InterfaceContractMapperImpl implements InterfaceContractMapper { Operation targetOperation = map(target.getInterface(), operation); if (targetOperation == null) { if (!silent) { - throw new IncompatibleInterfaceContractException("Operation not found on target", source, target); + throw new IncompatibleInterfaceContractException("Operation " + + operation.getName() + + " not found on target", + source, + target); } else { return false; } @@ -268,8 +272,11 @@ public class InterfaceContractMapperImpl implements InterfaceContractMapper { // FIXME: for remotable operation, only compare name for now if (!isCompatible(operation, targetOperation, Compatibility.SUBSET)) { if (!silent) { - throw new IncompatibleInterfaceContractException("Target operations are not compatible", - source, target); + throw new IncompatibleInterfaceContractException("Target operations called " + + operation.getName() + + " are not compatible", + source, + target); } else { return false; } |