added support for Throwable in OpenWire.Net

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@367640 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
James Strachan 2006-01-10 15:26:51 +00:00
parent dfb9c82114
commit 2ba813b311
2 changed files with 12 additions and 1 deletions

View File

@ -80,7 +80,10 @@ public abstract class OpenWireScript extends GramSupport {
if (name.equals("String")) {
return "string";
}
else if (name.equals("Throwable") || name.equals("Exception") || name.equals("ByteSequence")) {
else if (name.equals("Throwable") || name.equals("Exception")) {
return "BrokerError";
}
else if (name.equals("ByteSequence")) {
return "byte[]";
}
else if (name.equals("boolean")) {

View File

@ -177,6 +177,10 @@ namespace OpenWire.Client.IO
out << "ReadDestination(dataIn)"
break;
case "BrokerError":
out << "ReadBrokerError(dataIn)"
break;
case "BrokerId[]":
out << "ReadBrokerIds(dataIn)"
break;
@ -274,6 +278,10 @@ namespace OpenWire.Client.IO
out << "WriteDestination($getter, dataOut);"
break;
case "BrokerError":
out << "WriteBrokerError($getter, dataOut);"
break;
case "BrokerId[]":
out << "WriteBrokerIds($getter, dataOut);"
break;