Author: jsdelfino
Date: Sun Nov 26 02:50:35 2006
New Revision: 479336
URL: http://svn.apache.org/viewvc?view=rev&rev=479336
Log:
Minor code cleanup, simplified data conversion error handling.
Modified:
incubator/tuscany/cpp/sca/runtime/extensions/rest/reference/curl/src/tuscany/sca/rest/RESTServiceWrapper.cpp
Modified:
incubator/tuscany/cpp/sca/runtime/extensions/rest/reference/curl/src/tuscany/sca/rest/RESTServiceWrapper.cpp
URL:
http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/runtime/extensions/rest/reference/curl/src/tuscany/sca/rest/RESTServiceWrapper.cpp?view=diff&rev=479336&r1=479335&r2=479336
==============================================================================
---
incubator/tuscany/cpp/sca/runtime/extensions/rest/reference/curl/src/tuscany/sca/rest/RESTServiceWrapper.cpp
(original)
+++
incubator/tuscany/cpp/sca/runtime/extensions/rest/reference/curl/src/tuscany/sca/rest/RESTServiceWrapper.cpp
Sun Nov 26 02:50:35 2006
@@ -670,25 +670,13 @@
}
}
break;
- case Type::DateType:
- logwarning("SDO DateType return values are not yet
supported");
- break;
- case Type::LongType:
- logwarning("SDO LongType (int64_t) return values are not
yet supported");
- break;
- case Type::UriType:
- logwarning("SDO UriType return values are not yet
supported");
- break;
- case Type::BigDecimalType:
- logwarning("SDO BigDecimalType return values are not yet
supported");
- break;
- case Type::BigIntegerType:
- logwarning("SDO BigIntegerType return values are not yet
supported");
- break;
default:
- logwarning("Unknown SDO type has been found in return
value. Unknown types are not yet supported");
- break;
- }
+ {
+ ostringstream msg;
+ msg << "Unsupported result type: " <<
pl[i].getTypeEnum();
+ throwException(ServiceDataException,
msg.str().c_str());
+ }
+ }
}
} // End namespace rest
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]