Skip to content
Permalink
Browse files
Replace some Console outs with Trace statements.
  • Loading branch information
Timothy A. Bish committed Sep 2, 2010
1 parent 43c9bc6 commit 9eee3313dbad45171ee09ae20dcd90191fc60b79
Showing 1 changed file with 2 additions and 3 deletions.
@@ -172,7 +172,6 @@ private void MarshalPrimitive(XmlWriter writer, Object value)
{
if(value == null)
{
Console.WriteLine("Null Map Value");
throw new NullReferenceException("PrimitiveMap values should not be Null");
}
else if(value is char)
@@ -217,13 +216,13 @@ private void MarshalPrimitive(XmlWriter writer, Object value)
}
else if(value is IDictionary)
{
Console.WriteLine("Can't Marshal a Dictionary");
Tracer.Debug("Can't Marshal a Dictionary");

throw new NotSupportedException("Can't marshal nested Maps in Stomp");
}
else if(value is IList)
{
Console.WriteLine("Can't Marshal a List");
Tracer.Debug("Can't Marshal a List");

throw new NotSupportedException("Can't marshal nested Maps in Stomp");
}

0 comments on commit 9eee331

Please sign in to comment.