Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

Commit

Permalink
- removing NotSupportedException
Browse files Browse the repository at this point in the history
  • Loading branch information
salaboy committed Jan 23, 2012
1 parent 4b6ff7c commit 6bda23a
Showing 1 changed file with 7 additions and 5 deletions.
Expand Up @@ -161,15 +161,17 @@ when
performative == Act.QUERY_REF )
$resp : ResponseContent( messageId == $msgId, $data : data == null )
then
retract($resp);


Action action = MessageContentFactory.newActionContent(((QueryRef)$content).getQuery().getQueryName(),null);
ACLMessage ans = aclFactory.newReplyWithFailureMessage($msg, agentName,
action,
"Query Error - TODO improve diagnostics");
// System.out.println("PROTOCOL RULES : " + agentName + " >>>> " + ans);
System.out.println("PROTOCOL RULES : " + agentName + " >>>> " + ans);
responseInformer.informResponse($msg,ans);

retract($msg);
System.out.println("PROTOCOL RULES : Retracting Response ");
retract($resp);
end

Expand Down Expand Up @@ -290,7 +292,7 @@ then
ACLMessage ans = aclFactory.newReplyWithNotUnderstoodMessage( $msg,
$sender,
((Request) $body).getAction(),
new UnsupportedOperationException( "Routing error : No dedicated session" ) );
"Routing error : No dedicated session" );
responseInformer.informResponse($msg,ans);
retract( $msg );
end
Expand All @@ -305,7 +307,7 @@ then
ACLMessage ans = aclFactory.newReplyWithNotUnderstoodMessage( $msg,
$sender,
null,
new UnsupportedOperationException( "Routing error : No dedicated session" ) );
"Routing error : No dedicated session" );
responseInformer.informResponse($msg,ans);
retract( $msg );
end
Expand Down

0 comments on commit 6bda23a

Please sign in to comment.