mirror of https://github.com/apache/activemq.git
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:
parent
dfb9c82114
commit
2ba813b311
|
@ -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")) {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue