Skip to content

Commit 1e36b02

Browse files
authored
Update send-email-net.md
Sending the response as a string to the Exception constructor because it is expecting a string
1 parent 5b8b40f commit 1e36b02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/communication-services/quickstarts/email/includes/send-email-net.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ public class Catch429Policy : HttpPipelineSynchronousPolicy
410410
{
411411
if (message.Response.Status == 429)
412412
{
413-
throw new Exception(message.Response);
413+
throw new Exception(message.Response.ToString());
414414
}
415415
else
416416
{

0 commit comments

Comments
 (0)