fixed error messages in WebServiceExporter

This commit is contained in:
eeichinger
2009-12-14 23:31:44 +00:00
parent 7fe428a68e
commit d6f1a93c5f

View File

@@ -76,9 +76,15 @@ namespace Spring.Web.Services
{
exporterInstance = (WebServiceExporter)s_activeExporters[exporterId];
}
AssertUtils.ArgumentNotNull( exporterInstance, "exporterId", "Remoting Server object is not associated with any active SaoExporter" );
if (exporterInstance == null)
{
throw new ArgumentNullException("exporterId", "WebService object is not associated with any active WebServiceExporter");
}
object target = exporterInstance.GetTargetInstance();
AssertUtils.ArgumentNotNull( target, "exporterId", string.Format( "Failed retrieving target object for SaoExporter ID {0}", exporterId ) );
if (target == null)
{
throw new ArgumentNullException("exporterId", string.Format( "Failed retrieving target object for WebServiceExporter ID {0}", exporterId ));
}
return target;
}